Skip to content

Commit 5c148a4

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. https://stackoverflow.com/a/57903434/6366150
1 parent 1fb394a commit 5c148a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/snyk-code.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
name: Snyk Code (Java gradle-jdk17)
44

55
on: # yamllint disable-line rule:truthy
6-
push:
76
pull_request:
7+
push:
8+
branches:
9+
- '**' # matches every branch
10+
- '!dependabot/**' # excludes master
811
workflow_dispatch:
912

1013
jobs:

0 commit comments

Comments
 (0)