Skip to content

Commit

Permalink
Add Veracode scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrr5 committed Oct 31, 2024
1 parent 993d5fe commit ca7e7af
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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

0 comments on commit ca7e7af

Please sign in to comment.