File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Anchore Container Scan
2
+
3
+ on :
4
+ push :
5
+ branches : [ main ]
6
+ pull_request :
7
+ # The branches below must be a subset of the branches above
8
+ branches : [ main ]
9
+ schedule :
10
+ - cron : ' 0 0 * * 0'
11
+
12
+ jobs :
13
+ Anchore-Build-Scan :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - name : Checkout the code
17
+ uses : actions/checkout@v2
18
+ - name : Build the Docker image
19
+ run : docker build . --file Dockerfile --tag localbuild/testimage:latest
20
+ - name : Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
21
+ uses : anchore/scan-action@b08527d5ae7f7dc76f9621edb6e49eaf47933ccd
22
+ with :
23
+ image : " localbuild/testimage:latest"
24
+ acs-report-enable : true
25
+ - name : Upload Anchore Scan Report
26
+ uses : github/codeql-action/upload-sarif@v1
27
+ with :
28
+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments