2022-07-22 11:44:05 -03:00
|
|
|
name: "grype"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-08-21 15:20:31 -03:00
|
|
|
branches: ['main']
|
|
|
|
tags: ['v*']
|
|
|
|
pull_request:
|
2022-07-22 11:44:05 -03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
scan-source:
|
|
|
|
name: scan-source
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
actions: read
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
steps:
|
2022-08-19 09:11:36 -03:00
|
|
|
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
|
2022-07-22 11:44:05 -03:00
|
|
|
- uses: anchore/scan-action@v3
|
|
|
|
with:
|
|
|
|
path: "."
|
2022-07-22 11:47:09 -03:00
|
|
|
fail-build: true
|
2022-07-22 11:44:05 -03: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 11:47:09 -03:00
|
|
|
fail-build: true
|