Skip to content

fix: scope markdownlint and linkcheck workflow tokens to read-only contents access - #74

Merged
zaccesss merged 1 commit into
mainfrom
fix/workflow-permissions
Aug 5, 2026
Merged

fix: scope markdownlint and linkcheck workflow tokens to read-only contents access#74
zaccesss merged 1 commit into
mainfrom
fix/workflow-permissions

Conversation

@zaccesss

@zaccesss zaccesss commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Closes #73

I add an explicit permissions: contents: read block to markdownlint.yml and linkcheck.yml. Both jobs only check out the repo and run a read-only check, they never write back to the repository, so read-only contents access is sufficient. I also record this in CHANGELOG.md as 1.2.3.

@zaccesss zaccesss left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I check this against the two CodeQL alerts it closes. Both changes are single-line additions, they scope the workflow tokens to read-only contents access, matching what the jobs actually do: checkout and a read-only check, no writes anywhere. The changelog entry follows the project's existing Fixed convention.

@zaccesss
zaccesss merged commit 55f97e7 into main Aug 5, 2026
4 checks passed
@zaccesss
zaccesss deleted the fix/workflow-permissions branch August 5, 2026 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autoclose Close this issue when a PR that references it merges chore Housekeeping security Security relevant

Development

Successfully merging this pull request may close these issues.

actions/missing-workflow-permissions: markdownlint.yml and linkcheck.yml have no explicit permissions block

1 participant