Skip to content

Commit 8f65bf7

Browse files
authored
ci: Fix CodeQL workflow config (#14117)
Reverts #14109 and re-implements this differently. Actually, the problem was dependabot merging to develop (so the fix would not have caught that anyhow), + this was incorrect syntax (oops) as we had ignore-branches _and_ branches, which does not work. Now, instead we just run this always but check if this is a push from dependabot, which hopefully works better. See https://github.com/getsentry/sentry-javascript/actions/runs/11570166519
1 parent 6fefd44 commit 8f65bf7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ name: 'CI: CodeQL'
1414
on:
1515
push:
1616
branches: [develop]
17-
branches-ignore:
18-
# Ignore dependabot branches
19-
- "dependabot/**"
2017
pull_request:
2118
# The branches below must be a subset of the branches above
2219
branches: [develop]
@@ -36,6 +33,8 @@ jobs:
3633
analyze:
3734
name: Analyze
3835
runs-on: ubuntu-latest
36+
# Skip for pushes from dependabot, which is not supported
37+
if: github.event_name == 'pull_request' || github.actor != 'dependabot[bot]'
3938

4039
strategy:
4140
fail-fast: false

0 commit comments

Comments
 (0)