File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed
Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test gha-trivy Action
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ check :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Create dummy file to scan
17+ run : |
18+ echo 'FROM alpine' > Dockerfile
19+ echo 'RUN apk add --no-cache curl' >> Dockerfile
20+
21+ - name : Build test image
22+ run : |
23+ docker build -t test-gha-trivy:latest .
24+
25+ - name : Run gha-trivy action
26+ uses : ./
27+ with :
28+ image-ref : test-gha-trivy:latest
29+ create-test-report : ' true'
30+ create-summary : ' true'
Original file line number Diff line number Diff line change 66 - github-actions
77 - renovate-config
88 - workflows-default
9+
10+ required_checks :
11+ - check
You can’t perform that action at this time.
0 commit comments