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 Alexandro Becker 85cb047cd7
fix: run gitleaks and grype on prs (#3332)
Signed-off-by: Carlos A Becker caarlos0@users.noreply.github.com

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-08-21 15:20:31 -03:00

40 lines
700 B
YAML

name: "grype"
on:
push:
branches: ['main']
tags: ['v*']
pull_request:
jobs:
scan-source:
name: scan-source
runs-on: ubuntu-latest
permissions:
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # 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