File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Security Scan
2+ on :
3+ schedule :
4+ - cron : " 0 0 * * 0" # Runs weekly on Sunday at midnight
5+ workflow_dispatch :
6+ inputs :
7+ target :
8+ description : " Scan part"
9+ required : true
10+ default : " docker"
11+ type : choice
12+ options :
13+ - docker
14+ - source
15+ image :
16+ description : " Docker image (for 'docker' target). By default ghcr.io/<owner>/<repo>:latest"
17+ required : false
18+ default : " "
19+ only-high-critical :
20+ description : " Scan only HIGH + CRITICAL"
21+ required : false
22+ default : true
23+ type : boolean
24+ trivy-scan :
25+ description : " Run Trivy scan"
26+ required : false
27+ default : true
28+ type : boolean
29+ grype-scan :
30+ description : " Run Grype scan"
31+ required : false
32+ default : true
33+ type : boolean
34+ continue-on-error :
35+ description : " Continue on error"
36+ required : false
37+ default : true
38+ type : boolean
39+
40+ jobs :
41+ security-scan :
42+ uses : netcracker/qubership-workflow-hub/.github/workflows/re-security-scan.yml@379-feat-security-check-re-usable-workflow-grype-and-trivy
43+ with :
44+ target : ${{ github.event.inputs.target || 'source' }}
45+ image : ${{ github.event.inputs.image || "" }}
46+ only-high-critical : ${{ inputs.only-high-critical || 'true' }}
47+ trivy-scan : ${{ inputs.trivy-scan || 'true' }}
48+ grype-scan : ${{ inputs.grype-scan || 'true' }}
49+ continue-on-error : ${{ inputs.continue-on-error || 'true' }}
You can’t perform that action at this time.
0 commit comments