Skip to content

Veracode_Go

Veracode_Go #3

name: Veracode Pipeline Scan
on: workflow_dispatch
jobs:
pipeline_scan:
name: Pipeline Scan
runs-on: ubuntu-latest
steps:
- name: Check out main branch
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.22
- name: Build
run: go build
- name: Package the application for Veracode Static Analysis
run: |
export GOPATH=`go env GOPATH` &&
export PATH="$GOPATH/bin:$PATH" &&
go install github.com/relaxnow/vcgopkg@latest
vcgopkg
ls
- name: UploadAndScan
uses: veracode/veracode-uploadandscan-action@master # Faz a analise da Veracode
env:
VeracodeID: ${{ secrets.VeracodeID }} # Lembrar de criar as credenciais no Secrets
VeracodeKey: ${{ secrets.VeracodeKey }}
AppName: Github Actions - ${{ github.repository }}
with:
vid: '$VeracodeID'
vkey: '$VeracodeKey'
criticality: 'VeryHigh'
appname: '$AppName'
createsandbox: true
filepath: '/home/runner/work/govwa/govwa/veracode/*.zip'
version: ${{ github.run_id }}