-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/setup gitleaks #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
8a91907
3cda91a
97394d0
7784835
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,19 @@ | ||||||||||||||||||||||
| name: Gitleaks Scan | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| on: | ||||||||||||||||||||||
| pull_request: | ||||||||||||||||||||||
| branches: | ||||||||||||||||||||||
| - main | ||||||||||||||||||||||
| - dev | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||
| scan: | ||||||||||||||||||||||
| name: gitleaks | ||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - uses: actions/checkout@v4 | ||||||||||||||||||||||
| with: | ||||||||||||||||||||||
| fetch-depth: 0 | ||||||||||||||||||||||
| - uses: gitleaks/gitleaks-action@v2 | ||||||||||||||||||||||
| env: | ||||||||||||||||||||||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||||
|
Comment on lines
+17
to
+19
|
||||||||||||||||||||||
| - uses: gitleaks/gitleaks-action@v2 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run Gitleaks | |
| run: | | |
| docker run --rm \ | |
| -v "${{ github.workspace }}:/repo" \ | |
| -w /repo \ | |
| zricethezav/gitleaks:v8.18.4 \ | |
| git --no-banner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR introduces a PR-time Gitleaks workflow, but it doesn’t use the repo’s existing
gitleaks.tomlconfiguration / allowlist (the nightly workflow runsdetectwith--config=/work/gitleaks.toml). As a result, PR scans may produce different findings than nightly runs (including false positives or misses). Configure this action to run with the same config/ignore setup as the existing nightly job so results are consistent.