File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,36 +12,6 @@ permissions:
1212 contents : read
1313
1414jobs :
15- image-scan :
16- permissions :
17- contents : read
18- security-events : write
19- actions : read
20- name : Image Scan
21- runs-on : ubuntu-latest
22- steps :
23- - name : Checkout code
24- uses : actions/checkout@v4
25-
26- - name : Build image from .devcontainer/Dockerfile
27- run : |
28- docker build -t ghcr.io/ona-samples/github-security:${{ github.sha }} -f .devcontainer/Dockerfile .
29-
30- - name : Run Trivy image scanner
31- uses : aquasecurity/trivy-action@0.35.0
32- with :
33- image-ref : ' ghcr.io/ona-samples/github-security:${{ github.sha }}'
34- format : ' sarif'
35- output : ' trivy-image-results.sarif'
36- severity : ' CRITICAL,HIGH'
37-
38- - name : Upload image scan results to GitHub Security tab
39- uses : github/codeql-action/upload-sarif@v3
40- if : always()
41- with :
42- sarif_file : ' trivy-image-results.sarif'
43- category : ' trivy-image'
44-
4515 fs-scan :
4616 permissions :
4717 contents : read
You can’t perform that action at this time.
0 commit comments