Skip to content

ci: Add explicit GITHUB_TOKEN permissions to workflows - #95

Merged
khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1243-flagsmith-rust-client-add-explicit-56bb
Dec 3, 2026
Merged

khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1243-flagsmith-rust-client-add-explicit-56bb

Conversation

@khvn26

@khvn26 khvn26 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Adds a workflow-level permissions: contents: read block to msrv.yml, rust.yml and publish-cargo-package.yml. This keeps them working once the org default GITHUB_TOKEN becomes read-only.

None of these workflows does any GitHub write action. They check out the repo and run cargo check, cargo fmt, cargo test or cargo publish. cargo publish signs in to crates.io with the CRATES_TOKEN secret, not GITHUB_TOKEN.

codspeed.yml and sdk-spec.yml already declare their permissions, so they are unchanged.

Generated with [Linear](https://linear.app/flagsmith/agent-session/e44c328a-7ffe-4ede-a64d-05f66c0e3a6c)

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

✅ 15 untouched benchmarks
⏩ 15 skipped benchmarks1


Comparing kimgustyr/eng-1243-flagsmith-rust-client-add-explicit-56bb (b07f886) with main (266bce0)

Open in CodSpeed

Footnotes

  1. 15 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@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 workflow-level permissions: contents: read to three GitHub Actions workflows, restricting the GITHUB_TOKEN scope. This is a bounded CI security-hardening change; the workflows only check out the repo and run cargo commands, so no write access is needed.

Turn on auto-fix | Re-trigger cubic

@khvn26
khvn26 merged commit 4f11a4b into main Dec 3, 2026
8 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1243-flagsmith-rust-client-add-explicit-56bb branch December 3, 2026 14:56
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