From cc4de210036de90b35ab35992e91b215f872d855 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index 81a21ca9..d13230e2 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -10,6 +10,8 @@ name: Snyk Code analysis on: # yamllint disable-line rule:truthy pull_request: push: + branches-ignore: + - 'dependabot/' workflow_dispatch: jobs: