Skip to content

Commit

Permalink
[CONFIG] [Github Actions] Avoid run on "push" for dependabot triggere…
Browse files Browse the repository at this point in the history
…d 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
  • Loading branch information
Gonzalo Diaz committed Oct 23, 2024
1 parent 384120c commit 5db1b3a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/snyk-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: Snyk Code (Golang)

on: # yamllint disable-line rule:truthy
push:
branches:
- '**' # matches every branch
- '!dependabot/**' # excludes master
pull_request:
workflow_dispatch:

Expand Down

0 comments on commit 5db1b3a

Please sign in to comment.