Skip to content

Commit f7100a2

Browse files
committed
Don't run CodeQL on push event for Dependabot branches
Fixes: ``` Error: Workflows triggered by Dependabot on the "push" event run with read-only access. Uploading Code Scanning results requires write access. To use Code Scanning with Dependabot, please ensure you are using the "pull_request" event for this workflow and avoid triggering on the "push" event for Dependabot branches. See https://docs.github.com/en/code-security/secure-coding/configuring-code-scanning#scanning-on-push for more information on how to configure these events. ```
1 parent e70cbd0 commit f7100a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: "Code scanning - action"
22

33
on:
44
push:
5+
branches-ignore: 'dependabot/**'
56
pull_request:
67
schedule:
78
- cron: '0 12 * * 2'

0 commit comments

Comments
 (0)