Skip to content

Commit 08dfd75

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 150e0ad commit 08dfd75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/snyk-code.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
# yamllint enable rule:line-length
55

66
---
7-
87
name: .NET Snyk Code analysis
98

109
on: # yamllint disable-line rule:truthy
1110
push:
11+
branches:
12+
- "**" # matches every branch
13+
- "!dependabot/**" # excludes master
1214
pull_request:
1315
workflow_dispatch:
1416

0 commit comments

Comments
 (0)