Skip to content

ci: Keep workflows working with a read-only default GITHUB_TOKEN - #91

Merged
khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1228-flagsmith-elixir-client-add-explicit-b7bd
Dec 3, 2026
Merged

khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1228-flagsmith-elixir-client-add-explicit-b7bd

Conversation

@khvn26

@khvn26 khvn26 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Adds a workflow-level permissions: contents: read block to the two workflows that relied on the org default GITHUB_TOKEN permissions, ahead of switching that default to read-only.

  • publish.yml: only checks out the repo; the publish-hex action authenticates to hex.pm with HEX_API_KEY and doesn't use GITHUB_TOKEN.
  • test_format_dialyze.yml: checkout, cache, compile, test and dialyzer — no writes.

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

Generated with [Linear](https://linear.app/flagsmith/agent-session/9465c5e0-1f3c-4049-9cab-8c746483ba19)

Co-authored-by: linear-code[bot] <222613912+linear-code[bot]@users.noreply.github.com>
@codspeed

codspeed Bot commented Dec 3, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 12 untouched benchmarks


Comparing kimgustyr/eng-1228-flagsmith-elixir-client-add-explicit-b7bd (90b5953) with main (4c73902)

Open in CodSpeed

@khvn26
khvn26 marked this pull request as ready for review December 3, 2026 14:50
@khvn26
khvn26 requested a review from a team as a code owner December 3, 2026 14:50
@khvn26
khvn26 requested review from emyller and removed request for a team December 3, 2026 14:50

@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 2 files

Confidence score: 5/5

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

Auto-approved: Adds workflow-level contents: read GITHUB_TOKEN permissions to two workflows, matching the upcoming read-only org default. Both workflows only check out code and run tests or publish via HEX_API_KEY, so the change is strictly restrictive and bounded.

Turn on auto-fix | Re-trigger cubic

@khvn26
khvn26 merged commit c9a7c02 into main Dec 3, 2026
7 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1228-flagsmith-elixir-client-add-explicit-b7bd branch December 3, 2026 14:54
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