Skip to content

Commit

Permalink
fix: run gitleaks and grype on prs (#3332)
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker caarlos0@users.noreply.github.com

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 21, 2022
1 parent 817369a commit 85cb047
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/gitleaks.yml
Expand Up @@ -2,8 +2,9 @@ name: gitleaks

on:
push:
branches:
- 'main'
branches: ['main']
tags: ['v*']
pull_request:


permissions:
Expand All @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/grype.yml
Expand Up @@ -2,7 +2,9 @@ name: "grype"

on:
push:
branches: [ main ]
branches: ['main']
tags: ['v*']
pull_request:

jobs:
scan-source:
Expand Down
5 changes: 5 additions & 0 deletions .gitleaks.toml
@@ -0,0 +1,5 @@
[[rules]]
id = "ignore-testdata"
[rules.allowlist]
paths = ['''.*/testdata/*''']

0 comments on commit 85cb047

Please sign in to comment.