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 21, 2024
1 parent 9bdeb39 commit e17b7ee
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 @@ -5,6 +5,9 @@ name: Snyk Code analysis
on: # yamllint disable-line rule:truthy
pull_request:
push:
branches:
- '**' # matches every branch
- '!dependabot/**' # excludes master
workflow_dispatch:

jobs:
Expand Down

0 comments on commit e17b7ee

Please sign in to comment.