Skip to content

Add Veracode scanning #1

Add Veracode scanning

Add Veracode scanning #1

Workflow file for this run

name: security-check
on:
push:
branches:
- master
- sicurezza
jobs:
veracode:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.6'
cache: 'pip'
- name: Install dependencies
env:
GITHUB_USER: ${{ vars.AS__GITHUB_USER }}
GITHUB_TOKEN: ${{ secrets.AS__GITHUB_TOKEN }}
run: |
make
- name: Veracode Agent Based Scan
env:
SRCCLR_API_TOKEN: ${{ secrets.AS__VERACODE_AGENT_TOKEN }}
GITHUB_USER: ${{ vars.AS__GITHUB_USER }}
GITHUB_TOKEN: ${{ secrets.AS__GITHUB_TOKEN }}
uses: veracode/[email protected]
with:
github_token: $${{ secrets.AS__GITHUB_TOKEN }}
create-issues: false
allow-dirty: true
- name: Veracode (create zip)
run: zip -r src.zip . -x ".git/*" ".github/*" ".env*"
- name: Veracode Upload and Scan
uses: veracode/[email protected]
with:
appname: '${{ github.repository }}'
version: '${{ github.head_ref || github.ref_name }} - ${{ github.sha }}'
filepath: './src.zip'
vid: '${{ secrets.AS__VERACODE_API_ID }}'
vkey: '${{ secrets.AS__VERACODE_API_KEY }}'
scanallnonfataltoplevelmodules: true