From 5fcd6fda188f08407a81a39a7c2ab0740631faa6 Mon Sep 17 00:00:00 2001 From: Gonzalo Diaz Date: Mon, 21 Oct 2024 09:47:16 -0300 Subject: [PATCH] [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. --- .github/workflows/snyk-code.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index 81a21ca9..44e77806 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -10,6 +10,9 @@ name: Snyk Code analysis on: # yamllint disable-line rule:truthy pull_request: push: + branches: + - '**' # matches every branch + - '!dependabot/**' # excludes master workflow_dispatch: jobs: