File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Veracode Pipeline Scan
2+
3+ on :
4+ schedule :
5+ - cron : ' 46 2 1 * *'
6+
7+ workflow_dispatch :
8+ inputs :
9+ severity :
10+ description : ' Veracode severity to fail on'
11+ default : " VeryHigh,High"
12+ type : string
13+ secrets :
14+ VERACODE_API_ID :
15+ required : true
16+ VERACODE_API_KEY :
17+ required : true
18+
19+ jobs :
20+ pipeline_scan :
21+ name : Pipeline Scan
22+ runs-on : ubuntu-latest
23+ env :
24+ ASSET_NAME : ' payersync-onboarder-backend.zip'
25+ outputs :
26+ asset_name : ${{ steps.create-artifact.outputs.asset_name }}
27+ steps :
28+ - name : Check out branch
29+ uses : actions/checkout@v4
30+ with :
31+ fetch-depth : 1
32+ ref : ${{ github.ref }}
33+
34+ - name : Prepare files to scan
35+ id : create-artifact
36+ run : |
37+ zip -9 -r "${{ env.ASSET_NAME }}" .
38+ echo "asset_name=${{ env.ASSET_NAME }}" >> $GITHUB_OUTPUT
39+
40+ - name : Upload artifact
41+ uses : actions/upload-artifact@v4
42+ with :
43+ name : ${{ env.ASSET_NAME }}
44+ path : .
45+ compression-level : 9
46+ overwrite : true
47+ call-deployment-workflow :
48+ uses : rectanglehealth/php-core-sdk/.github/workflows/veracode-pipeline-scan.yml@develop
49+ needs : pipeline_scan
50+ with :
51+ branch_name : ${{ github.ref_name }}
52+ asset_name : ${{ needs.pipeline_scan.outputs.asset_name }}
53+ veracode_app : payersync-onboarder-backend
54+ severity : ${{ inputs.severity || 'VeryHigh,High' }}
55+ secrets : inherit
You can’t perform that action at this time.
0 commit comments