Skip to content

Commit d93ae7f

Browse files
tablackburnclaude
andcommitted
ci: Skip GitGuardian scan for Dependabot PRs and update checkout to v6
Dependabot PRs don't have access to repository secrets, causing the GitGuardian scan to fail with "Invalid GitGuardian API key". Since Dependabot only updates dependencies and won't introduce secrets, skipping the scan for these PRs is safe. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4642f2e commit d93ae7f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/ggshield.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ jobs:
88
scanning:
99
name: GitGuardian Scan
1010
runs-on: ubuntu-latest
11+
# Skip for Dependabot PRs - they don't have access to secrets and only update dependencies
12+
if: github.actor != 'dependabot[bot]'
1113
steps:
12-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1315
with:
1416
fetch-depth: 0
1517
- uses: GitGuardian/ggshield-action@v1

0 commit comments

Comments
 (0)