Skip to content

ci: limit the workflow token to reading repository contents - #21

Merged
j0sh merged 1 commit into
mainfrom
ci/workflow-permissions
Sep 10, 2026
Merged

j0sh merged 1 commit into
mainfrom
ci/workflow-permissions

Conversation

@rickstaa

@rickstaa rickstaa commented Sep 9, 2026

Copy link
Copy Markdown
Member

Resolves code-scanning alert #1 (actions/missing-workflow-permissions). The Unit tests job declared no permissions, so its GITHUB_TOKEN inherited whatever the repository default allowed. This adds a workflow-level contents: read default; the docker job keeps its own packages: write block, so image publishing is unaffected.

The unit test job inherited whatever the repository default allowed.
A workflow level contents: read default covers it; the docker job keeps
its own block, so publishing still works.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 9, 2026 20:50

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rickstaa
rickstaa requested a review from j0sh September 9, 2026 20:51
@rickstaa

rickstaa commented Sep 9, 2026

Copy link
Copy Markdown
Member Author

@j0sh sorry for the ping, but was not sure if you have automatic deployments behind this repo, otherwise would have just merged.

@j0sh

j0sh commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

Yep there should be an automatic docker build after merge in this repo.

@j0sh
j0sh merged commit 4a735a6 into main Sep 10, 2026
5 checks passed
@j0sh
j0sh deleted the ci/workflow-permissions branch September 10, 2026 05:41
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