Skip to content

Commit

Permalink
Merge pull request #3 from tdr-autosync/sicurezza
Browse files Browse the repository at this point in the history
Add Veracode scanning
  • Loading branch information
danielrr5 authored Nov 5, 2024
2 parents 2685300 + bbc3d94 commit 14e9185
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: security-check

on:
push:
branches:
- master
- sicurezza

jobs:
veracode:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Configure Node
uses: actions/setup-node@v4
with:
node-version: '18.x'

- name: Install dependencies
run: yarn install --frozen-lockfile --silent

- name: Veracode Agent Based Scan
env:
SRCCLR_API_TOKEN: ${{ secrets.AS__VERACODE_AGENT_TOKEN }}
uses: veracode/veracode-sca@v2.1.12
with:
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/veracode-uploadandscan-action@0.2.7
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 14e9185

Please sign in to comment.