Skip to content

Commit aa7edc8

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github Actions] Avoid run on "push" for dependabot triggered actions.
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/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning#scanning-on-push for more information on how to configure these events.
1 parent d771733 commit aa7edc8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/snyk-code.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ name: Snyk Code analysis
1010
on: # yamllint disable-line rule:truthy
1111
pull_request:
1212
push:
13+
branches:
14+
- '**' # matches every branch
15+
- '!dependabot/**' # excludes master
16+
branches-ignore:
17+
- 'dependabot/**'
1318
workflow_dispatch:
1419

1520
jobs:

0 commit comments

Comments
 (0)