Skip to content

Anchore Container Scan #354

Anchore Container Scan

Anchore Container Scan #354

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@v3
- 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
- name: Upload Anchore Scan Report
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif