Upgrade Veracode actions and fix warning #2
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: 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 }} | |
GITHUB_USER: ${{ vars.AS__GITHUB_USER }} | |
GITHUB_TOKEN: ${{ secrets.AS__GITHUB_TOKEN }} | |
uses: veracode/veracode-sca@v2.1.12 | |
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/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 |