Skip to content

ci: give workflows a read-only token by default - #14

Merged
rbatista191 merged 1 commit into
mainfrom
ci/workflow-permissions
Nov 27, 2026
Merged

rbatista191 merged 1 commit into
mainfrom
ci/workflow-permissions

Conversation

@rbatista191

Copy link
Copy Markdown
Contributor

Adds a top-level permissions: contents: read block to the workflows that CodeQL flagged (actions/missing-workflow-permissions).

  • Jobs without their own permissions: block now get only read access to the repository contents.
  • Jobs that set their own block (the publish jobs with id-token: write and contents: write) do not change.
  • The default token in this repository is already read-only, so the jobs keep the access they have today. The block keeps them read-only if the default changes.

Add a top-level 'permissions: contents: read' block. Jobs without their
own permissions block get only read access to the repository contents.
Jobs that set their own permissions, such as the publish jobs, do not
change.

This closes the CodeQL alerts actions/missing-workflow-permissions.
@rbatista191
rbatista191 merged commit beb2521 into main Nov 27, 2026
7 checks passed
@rbatista191
rbatista191 deleted the ci/workflow-permissions branch November 27, 2026 10:27
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