1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/.github/workflows/grype.yml
Carlos A Becker b52c8e387d
chore(ci): fail build if grype fails
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-07-22 11:47:09 -03:00

38 lines
667 B
YAML

name: "grype"
on:
push:
branches: [ main ]
jobs:
scan-source:
name: scan-source
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@b0e28b5ac45a892f91e7d036f8200cf5ed489415 # v3
- uses: anchore/scan-action@v3
with:
path: "."
fail-build: true
scan-image:
name: scan-image
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: anchore/scan-action@v3
with:
image: "goreleaser/goreleaser:latest"
fail-build: true