From 2538c89e71cf3c2bb87d1356355d8326fcecbb55 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 1 Jun 2026 10:49:42 -0700 Subject: [PATCH] Scope CodeQL write permissions to the analyze job --- .github/workflows/codeql.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 6a87572e..69259c98 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -8,12 +8,14 @@ on: permissions: contents: read - security-events: write - actions: read jobs: analyze: runs-on: ubuntu-latest + permissions: + contents: read + security-events: write + actions: read steps: - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0