Skip to content

ci: set explicit token permissions, rename lint workflow to .yaml - #19

Merged
MindTooth merged 2 commits into
mainfrom
ci/lint-workflow-permissions
Nov 15, 2026
Merged

MindTooth merged 2 commits into
mainfrom
ci/lint-workflow-permissions

Conversation

@MindTooth

@MindTooth MindTooth commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Part of an org-wide security hardening: the org default GITHUB_TOKEN is planned to become read-only, so workflows should declare the permissions they need.

  • Set permissions: {} at workflow level and grant contents: read + checks: write on the run-linters job. wearerequired/lint-action reports through check runs and needs checks: write. contents: write is only needed for auto_fix, which defaults to off and is not set here.
  • Rename lint.yml to lint.yaml and add the --- document start. Nothing else references the old filename.

No action versions changed.

🤖 Generated with Claude Code

MindTooth and others added 2 commits November 15, 2026 14:27
lint-action creates check runs (checks: write); auto_fix is off, so
contents: read is enough. Prepares for a read-only org default token.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@MindTooth MindTooth self-assigned this Nov 15, 2026
@MindTooth
MindTooth merged commit 75873ca into main Nov 15, 2026
3 checks passed
@MindTooth
MindTooth deleted the ci/lint-workflow-permissions branch November 15, 2026 13:47
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