Skip to content

Merge pull request #83 from containrrr/dependabot/github_actions/Davi… #364

Merge pull request #83 from containrrr/dependabot/github_actions/Davi…

Merge pull request #83 from containrrr/dependabot/github_actions/Davi… #364

---
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-24.04
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@v6
id: anchore_scan
with:
image: "localbuild/testimage:latest"
fail-build: false
- name: Upload Anchore Scan Report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.anchore_scan.outputs.sarif }}