Skip to content

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

Merged
khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1223-flagsmith-backstage-plugin-add-0b31
Dec 3, 2026
Merged

khvn26 merged 1 commit into
mainfrom
kimgustyr/eng-1223-flagsmith-backstage-plugin-add-0b31

Conversation

@khvn26

@khvn26 khvn26 commented Dec 3, 2026

Copy link
Copy Markdown
Member

Adds a workflow-level permissions: contents: read block to ci.yml and publish-release.yml, so both keep working once the org default GITHUB_TOKEN becomes read-only.

  • ci.yml (lint, typecheck, build, test): these jobs only check out the code and run yarn, and make no GitHub API calls.
  • publish-release.yml (build): checks out the code, runs yarn and uploads an artifact, which needs only read access. The publish job keeps its own id-token: write / contents: read block for npm publish --provenance. A job-level block replaces the workflow-level one, so publish is unaffected.

Generated with [Linear](https://linear.app/flagsmith/agent-session/015d9c61-32d4-4832-9fd6-2348c34d9b6c)

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: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.

Requires human review: The workflows now explicitly limit token permissions to contents: read, while the publish job retains its own permissions. A human should confirm this authorization policy change is intended.

Turn on auto-fix | Re-trigger cubic

@khvn26
khvn26 merged commit 2b3dac9 into main Dec 3, 2026
6 checks passed
@khvn26
khvn26 deleted the kimgustyr/eng-1223-flagsmith-backstage-plugin-add-0b31 branch December 3, 2026 16:13
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.

3 participants