-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (34 loc) · 1.12 KB
/
veracode-dast-scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Veracode Dynamic Analysis Scan
concurrency: ${{ github.ref }}-${{ github.workflow }}
on:
schedule:
- cron: "0 3 * * 2,4,6"
workflow_dispatch:
inputs:
dast-profile-name:
description: "Name of dynamic analysis profile"
default: "CAMS Flexion"
required: true
type: string
jobs:
dast-scan:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Veracode credentials
run: |
pwd
mkdir ~/.veracode
cat > credentials << EOF
[default]
veracode_api_key_id = ${{ secrets.VERACODE_API_ID }}
veracode_api_key_secret = ${{ secrets.VERACODE_API_KEY }}
EOF
mv credentials ~/.veracode
- name: Install dependencies
run: pip install veracode-api-signing
- name: Execute DAST Prescan
run: ./ops/scripts/pipeline/veracode-prescan.py "${{ inputs.dast-profile-name || 'CAMS Flexion' }}"
- name: Schedule DAST Scan
run: ./ops/scripts/pipeline/veracode-dast-scan.py "${{ inputs.dast-profile-name || 'CAMS Flexion' }}"