2022-07-22 16:44:05 +02:00
|
|
|
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: "."
|
2022-07-22 16:47:09 +02:00
|
|
|
fail-build: true
|
2022-07-22 16:44:05 +02:00
|
|
|
|
|
|
|
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"
|
2022-07-22 16:47:09 +02:00
|
|
|
fail-build: true
|