Skip to content

Anchore Container Scan #326

Anchore Container Scan

Anchore Container Scan #326

name: Anchore Container Scan
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '17 7 * * 5'
permissions:
security-events: write
actions: read
jobs:
Anchore-Build-Scan:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- 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@main
with:
image: "localbuild/testimage:latest"
acs-report-enable: true
fail-build: false
- name: Upload Anchore Scan Report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif