CI/CD Integration - Viper with Windows Image for GitLab
Steps to create Pipeline
Take the following steps to configure vFunction Viper to analyze the application’s binaries in the GitLab pipeline:
- Create a vFunction Service account and a vFunction Yaml for use with Viper
- Navigate to the root of the repository to open the gitlab-ci.yml
- Create a custom Job after the Application has been built (post-build)
- Add the vFunction variables VF_HOST, VF_APPNAME, VF_CONF, VF_USER, VF_PASSWORD to this pipeline. Add the vFunction script steps to this pipeline to download and run the vFunction Viper scripts:
### 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
vf-continuous-viper:
stage: test
image: windows-latest
script:
- export VF_HOST="https:/vfunction.organization.com" && export VF_APPNAME="TEST" && export VF_CONF="C:\path\to\vfunction\yaml\file\viper-conf.yaml" && export VF_USER="vFunction-Service-Account-Id" && export VF_PASSWORD="vFunction-Service-Account-Password"
- curl -LO https://vfunction.organization.com/downloads/vfunction-tools/viper-cli.zip
- Expand-Archive -LiteralPath C:\vfunction\viper-cli.zip -DestinationPath C:\vfunction\
- powershell C:\vfunction\viper-run-ci.ps1