Skip to content

Commit

Permalink
Merge pull request #10 from bryopsida/bryopsida-patch-2
Browse files Browse the repository at this point in the history
Create anchore-analysis.yml
  • Loading branch information
bryopsida authored Jan 15, 2022
2 parents 723c61c + 7793a6e commit 0e515d7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/anchore-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: Anchore Container Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '35 22 * * 0'
jobs:
Anchore-Build-Scan:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
uses: anchore/scan-action@b08527d5ae7f7dc76f9621edb6e49eaf47933ccd
with:
image: "localbuild/testimage:latest"
acs-report-enable: true
fail-build: false
- name: Upload Anchore Scan Report
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif

0 comments on commit 0e515d7

Please sign in to comment.