Skip to content

ci: set read-only token permissions on the check workflow - #38

Merged
CameronBrooks11 merged 1 commit into
mainfrom
ci/check-workflow-permissions
Nov 11, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
ci/check-workflow-permissions

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

CodeQL's first run on this repo raised 5 medium actions/missing-workflow-permissions alerts (#1-#5), one per job in .github/workflows/check.yml, because the workflow declares no permissions: block.

The repo's default workflow token is already read (GET repos/CameronBrooks11/wikisync/actions/permissions/workflow → "default_workflow_permissions":"read"), so this pins that in the file rather than changing behaviour. pull-requests: read covers dorny/paths-filter, which lists a PR's changed files through the API.

This PR's own run exercises the pull_request path of paths-filter under the new permissions; the alerts should close on the next CodeQL run after merge.

check.yml declared no permissions block, which CodeQL flags as
actions/missing-workflow-permissions (alerts #1-#5, one per job). The
repo default is already read, so this pins that in the file rather
than changing behaviour. pull-requests: read covers dorny/paths-filter,
which lists a PR's changed files through the API.
@CameronBrooks11
CameronBrooks11 merged commit fa52538 into main Nov 11, 2026
9 checks passed
@CameronBrooks11
CameronBrooks11 deleted the ci/check-workflow-permissions branch November 11, 2026 04:38
CameronBrooks11 added a commit that referenced this pull request Nov 13, 2026
chore: bump version to 0.4.0

Prepares v0.4.0: the version constant becomes 0.4.0, and the
CHANGELOG's Unreleased section becomes 0.4.0. User-facing change since
v0.3.1: #41 (pull --depth follows --category into subcategories, #21).
CI action updates since then: #38, #39, #40. The tag is pushed after
this merges.
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