Skip to content

ci: restrict GITHUB_TOKEN permissions to contents read - #103

Merged
koh-sh merged 1 commit into
mainfrom
ci/restrict-workflow-permissions
Oct 23, 2026
Merged

koh-sh merged 1 commit into
mainfrom
ci/restrict-workflow-permissions

Conversation

@koh-sh

@koh-sh koh-sh commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Summary

Add a workflow-level permissions: contents: read block to .github/workflows/ci.yml.

Resolves code scanning alert #1 (actions/missing-workflow-permissions). The lint-and-test job only checks out code, installs tools via mise, runs lint/tests, and builds the Hugo site, so it needs no write scopes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Uo1WntBpv7bJqy6XZWi5FW

Resolves the CodeQL actions/missing-workflow-permissions alert. The job
only checks out code, installs tools, and builds, so read access to
repository contents is sufficient.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Uo1WntBpv7bJqy6XZWi5FW
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying blog with  Cloudflare Pages  Cloudflare Pages

Latest commit: 686afd5
Status: ✅  Deploy successful!
Preview URL: https://58b3c21d.blog-ddd.pages.dev
Branch Preview URL: https://ci-restrict-workflow-permiss.blog-ddd.pages.dev

View logs

@koh-sh
koh-sh merged commit 3275406 into main Oct 23, 2026
5 checks passed
@koh-sh
koh-sh deleted the ci/restrict-workflow-permissions branch October 23, 2026 00:28
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