1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-10-30 23:58:09 +02:00

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>
This commit is contained in:
Carlos Alexandro Becker
2022-08-21 15:20:31 -03:00
committed by GitHub
parent 817369a1ce
commit 85cb047cd7
3 changed files with 13 additions and 3 deletions

View File

@@ -2,8 +2,9 @@ name: gitleaks
on:
push:
branches:
- 'main'
branches: ['main']
tags: ['v*']
pull_request:
permissions:
@@ -14,6 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -2,7 +2,9 @@ name: "grype"
on:
push:
branches: [ main ]
branches: ['main']
tags: ['v*']
pull_request:
jobs:
scan-source:

5
.gitleaks.toml Normal file
View File

@@ -0,0 +1,5 @@
[[rules]]
id = "ignore-testdata"
[rules.allowlist]
paths = ['''.*/testdata/*''']