Change Veracode scan branch from 'main' to 'sde-1111' #1
This file contains hidden or 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 SAST Scan | |
| on: | |
| push: | |
| branches: [ "sde-1111" ] | |
| pull_request: | |
| branches: [ "sde-1111" ] | |
| jobs: | |
| veracode-scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Check out the code | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| # Step 2: Set up Java (Required by the Veracode wrapper under the hood) | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'zulu' | |
| # Step 3: Zip the source files (Excluding node_modules as required by Veracode) | |
| - name: Package Application for Veracode | |
| run: | | |
| zip -r veracode-package.zip . -x "node_modules/*" ".git/*" ".github/*" | |
| # Step 4: Upload and Scan to Veracode | |
| - name: Veracode Upload and Scan | |
| uses: veracode/uploadandscan-action@v1.0.3 | |
| with: | |
| vid: ${{ secrets.VERACODE_API_ID }} | |
| vkey: ${{ secrets.VERACODE_API_KEY }} | |
| appname: ${{ github.event.repository.name }} | |
| createprofile: true | |
| filepath: 'veracode-package.zip' | |
| version: 'Scan-${{ github.run_id }}-${{ github.run_number }}' |