1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

chore(ci): scan with grype

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-07-22 11:44:05 -03:00
parent 5e0f345e1b
commit 0f7f799efd
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

37
.github/workflows/grype.yml vendored Normal file
View File

@ -0,0 +1,37 @@
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: false
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: false