CI/CD Integration - Viper with Linux Image for Github Actions


Steps to create Pipeline

Take the following steps to configure vFunction Viper to analyze the application’s binaries using Github Actions:

  1. Create a vFunction Service account and a vFunction Yaml for use with Viper
  2. Log into Github
  3. Create .github/workflows/vfunction-continuous-viper.yaml
  4. Add the following content to this Yaml:
### Find-and-replace "https://vfunction.organization.com" below with the address to your own VF Server

### Modify the VF_APPNAME value, VF_CONF value, VF_USER value, and VF_PASSWORD values

name: vFunction Continuous Viper-CLI

on:
  deployment

env:
  VF_HOST: https://vfunction.organization.com
  VF_APPNAME: test
  VF_CONF: C:\path\to\vfunction\yaml\file\viper-conf.yaml
  VF_USER: "vFunction-Service-Account-Id"
  VF_PASSWORD: "vFunction-Service-Account-Password"

jobs:
  deploy:
    runs-on: windows-latest
    defaults:
      run:
        working-directory: C:\vfunction
    steps:
      - name: Download Viper-CLI
      run: curl -LO https://vfunction.organization.com/downloads/vfunction-tools/viper-cli.zip 
      - name: Unpack Viper-CLI ZIP
      run: Expand-Archive -LiteralPath C:\vfunction\viper-cli.zip -DestinationPath C:\vfunction\
      - name: Analyze assemblies and upload results to VF Server
      run: powershell C:\vfunction\viper-run-ci.ps1
  1. Commit the file