Skip to content

Commit 23a4f81

Browse files
Create anchore-analysis.yml
1 parent 6c8b04c commit 23a4f81

File tree

1 file changed

+28
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)