Skip to content

Commit 7261eab

Browse files
authored
Create test-scan.yml
1 parent c05101b commit 7261eab

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

.github/workflows/test-scan.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

0 commit comments

Comments
 (0)