Skip to content

Commit 8947167

Browse files
authored
1 parent 407ac52 commit 8947167

File tree

1 file changed

+49
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)