From aa7edc83cb508f1f995baaf1a5cef07865e8852e 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 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/snyk-code.yml b/.github/workflows/snyk-code.yml index 81a21ca9..d01cc53d 100644 --- a/.github/workflows/snyk-code.yml +++ b/.github/workflows/snyk-code.yml @@ -10,6 +10,11 @@ name: Snyk Code analysis on: # yamllint disable-line rule:truthy pull_request: push: + branches: + - '**' # matches every branch + - '!dependabot/**' # excludes master + branches-ignore: + - 'dependabot/**' workflow_dispatch: jobs: