Skip to content

ci: Add explicit GITHUB_TOKEN permissions to workflows - #265

Merged
khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1234-flagsmith-java-client-add-explicit-4d92
Dec 3, 2026
Merged

khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1234-flagsmith-java-client-add-explicit-4d92

Conversation

@khvn26

@khvn26 khvn26 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Adds explicit permissions: blocks so these workflows keep working once the org default GITHUB_TOKEN becomes read-only.

  • codeql.yml: contents: read at workflow level. The analyze job also gets security-events: write, because github/codeql-action/analyze uploads SARIF results to the Security tab.
  • publish.yml: contents: read. The workflow only checks out the repository. Publishing to Maven Central uses OSSRH secrets, not GITHUB_TOKEN.
  • run-tests.yml: contents: read. The test and release-build jobs only check out, build and test.

codspeed.yml and sdk-spec.yml already declare their permissions.

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>
@khvn26
khvn26 marked this pull request as ready for review December 3, 2026 14:51
@khvn26
khvn26 requested a review from a team as a code owner December 3, 2026 14:51
@khvn26
khvn26 requested review from emyller and removed request for a team December 3, 2026 14:51

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Adds explicit read-only GITHUB_TOKEN permissions to CI workflows, with security-events: write scoped to the CodeQL analyze job for SARIF upload. This is bounded, least-privilege CI config hardening with no behavioral expansion.

Turn on auto-fix | Re-trigger cubic

@codspeed

codspeed Bot commented Dec 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 15 untouched benchmarks


Comparing kimgustyr/eng-1234-flagsmith-java-client-add-explicit-4d92 (3be917e) with main (d6a168d)

Open in CodSpeed

@khvn26
khvn26 merged commit 6a73efc into main Dec 3, 2026
18 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1234-flagsmith-java-client-add-explicit-4d92 branch December 3, 2026 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant