Skip to content

Commit 9f4fbc5

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 9f4fbc5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/snyk-code.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ 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
1316
workflow_dispatch:
1417

1518
jobs:

0 commit comments

Comments
 (0)