Veracode Security Scan #388
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Veracode Security Scan | |
on: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: 0 4 * * * | |
workflow_dispatch: | |
jobs: | |
veracode-sca-task: | |
runs-on: ubuntu-latest | |
name: Veracode SCA scan | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Run Veracode SCA | |
env: | |
SRCCLR_API_TOKEN: ${{ secrets.SRCCLR_API_TOKEN }} | |
uses: veracode/[email protected] | |
veracode-sast-task: | |
runs-on: ubuntu-latest | |
name: Veracode SAST policy scan | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: create new package-lock.json | |
run: npm install | |
- name: ZIP source folder | |
run: zip -r app.zip src package-lock.json | |
- name: Run Veracode Policy scan | |
uses: veracode/[email protected] | |
with: | |
appname: 'GitHub SCA Action' | |
createprofile: false | |
filepath: 'app.zip' | |
scantimeout: 30 | |
vid: '${{ secrets.API_ID }}' | |
vkey: '${{ secrets.API_KEY }}' | |