File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : Trivy Security Scan
3+
4+ # permissions required for the action, restricting to read-only for repository contents.
5+ permissions :
6+ contents : read
7+
8+ on :
9+ pull_request :
10+ branches :
11+ - main
12+
13+ jobs :
14+ trivy-security-scan :
15+ name : Run Trivy Security Scan
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout Repository
20+ uses : actions/checkout@v4
21+ with :
22+ submodules : " recursive" # Ensure any submodules are included in the scan.
23+ token : ${{ secrets.ENGINEERING_GITHUB_PERSONAL_ACCESS_TOKEN }}
24+
25+ # Run Trivy Configuration Scan with specified options.
26+ - name : Run Trivy Security Scan
27+ uses :
aquasecurity/[email protected] 28+ with :
29+ scan-type : ' config'
30+ trivy-config : ' trivy.yaml'
You can’t perform that action at this time.
0 commit comments