Skip to content

Fix: Test new grype workflow #104

Fix: Test new grype workflow

Fix: Test new grype workflow #104

Workflow file for this run

name: Anchore Grype vulnerability scan
on: [push]
permissions:
contents: read
security-events: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Grype installation path
run: echo "$HOME/bin" >> $GITHUB_PATH
- name: Download Grype
run: |
curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b $HOME/bin
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Build the Container image
run: docker build . --file Dockerfile --tag localbuild/testimage:latest
- name: Run Grype test
run: grype -o sarif localbuild/testimage:latest > results.sarif
- name: Upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ./results.sarif