Skip to content

Commit

Permalink
chore(ci): scan with grype
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jul 22, 2022
1 parent 5e0f345 commit 0f7f799
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/grype.yml
@@ -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

0 comments on commit 0f7f799

Please sign in to comment.