ci: update nancy ignore #277
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: grype | |
on: | |
push: | |
branches-ignore: | |
- 'dependabot/**' | |
pull_request: | |
schedule: | |
- cron: '0 12 * * 6' | |
permissions: | |
contents: read | |
jobs: | |
grype: | |
permissions: | |
contents: read # for docker/build-push-action to read repo content | |
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3.0.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3.0.0 | |
- name: Build Container Image | |
uses: docker/build-push-action@v5.0.0 | |
with: | |
context: . | |
file: ./Dockerfile | |
load: true | |
platforms: linux/amd64 | |
provenance: false | |
push: false | |
tags: ghcr.io/${{ github.repository }}:grype | |
- name: Run Grype Vulnerability Scanner | |
uses: anchore/scan-action@v3 | |
id: scan | |
with: | |
image: ghcr.io/${{ github.repository }}:grype | |
- name: Upload Grype Scan Results | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: ${{ steps.scan.outputs.sarif }} |