From 63a42e69497e2bd2b1b60e6a6102d70cf92fa6f3 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 11 Feb 2023 01:03:19 +0100 Subject: [PATCH] Disable CodeQL run for push events for Dependabot Error: 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/secure-coding/configuring-code-scanning#scanning-on-push for more information on how to configure these events. --- .github/workflows/codeql-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 320fa3c..f585ddd 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,7 @@ jobs: analyze: name: Analyze runs-on: ubuntu-latest + if: github.event_name != 'push' || github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]' && github.actor != 'dependabot' permissions: actions: read contents: read