From 3be917e6d819e70d8934a8105f8fff404adea000 Mon Sep 17 00:00:00 2001 From: Kim Gustyr <979078+khvn26@users.noreply.github.com> Date: Thu, 3 Dec 2026 14:41:53 +0000 Subject: [PATCH] ci: Add explicit GITHUB_TOKEN permissions to workflows Generated with [Linear](https://linear.app/flagsmith/agent-session/d5bc1a21-bb43-4094-9c59-a2284e1cc3e7) Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com> --- .github/workflows/codeql.yml | 6 ++++++ .github/workflows/publish.yml | 3 +++ .github/workflows/run-tests.yml | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ccaf7f46..6b48f7f7 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -8,10 +8,16 @@ on: schedule: - cron: '0 0 * * 4' +permissions: + contents: read + jobs: analyze: name: Analyze runs-on: ubuntu-latest + permissions: + contents: read # Check out the repository and its submodules + security-events: write # Upload CodeQL SARIF results to the Security tab strategy: fail-fast: false diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 96d3da89..d9331533 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -8,6 +8,9 @@ on: tags: - "*" +permissions: + contents: read # Check out the repository; Maven Central publishing uses OSSRH secrets + jobs: publish-to-maven-central: runs-on: ubuntu-latest diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 0ce5ab46..6439fc87 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -6,6 +6,9 @@ on: - main pull_request: +permissions: + contents: read # Check out, build and test only + jobs: test: runs-on: ubuntu-latest