From e6286c30dbd444df0755956215a2ea5c7426136f Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 1 Dec 2026 11:45:30 +0100 Subject: [PATCH] ci: set required permissions on workflows Signed-off-by: Ferdinand Thiessen [skip ci] --- .github/workflows/codeql.yml | 3 ++- .github/workflows/static-code-analysis.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 232743ef4e0db..90859d4f6554c 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -16,9 +16,10 @@ jobs: name: Analyze (${{ matrix.language }}) runs-on: ubuntu-latest permissions: + # required to fetch on gmbh + contents: read # required for all workflows security-events: write - # required to fetch internal or private CodeQL packs packages: read diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index 8c03a175b3ff2..b9b9c35361a87 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -24,6 +24,10 @@ jobs: changes: runs-on: ubuntu-latest-low + permissions: + contents: read + pull-requests: read + outputs: src: ${{ steps.changes.outputs.src }}