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: /path/to/vfunction/yaml/file/viper-conf.yaml
  VF_USER: "vFunction-Service-Account-Id"
  VF_PASSWORD: "vFunction-Service-Account-Password"

jobs:
  deploy:
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: ./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: jar -xvf viper-cli.zip
      - name: Analyze binaries and upload results to VF Server
      run: bash viper-run-ci.sh
  1. Commit the file