Skip to content

fix(ci): set explicit workflow permissions for GAE deploy#209

Merged
nishimotz merged 1 commit into
masterfrom
fix/workflow-permissions
Jun 17, 2026
Merged

fix(ci): set explicit workflow permissions for GAE deploy#209
nishimotz merged 1 commit into
masterfrom
fix/workflow-permissions

Conversation

@nishimotz

Copy link
Copy Markdown
Collaborator

Summary

  • Code scanning alert #1actions/missing-workflow-permissions)を解消
  • .github/workflows/appengine-deploy.ymlpermissions: contents: read を追加し、GITHUB_TOKEN を読み取り限定に明示

背景

deploy job は actions/checkout によるコード取得が主な GITHUB_TOKEN 利用で、GCP 認証は secrets.GCP_SA_KEY 経由のため id-token: write は不要です。

Test plan

Add `permissions: contents: read` so GITHUB_TOKEN is read-only and
CodeQL alert actions/missing-workflow-permissions is resolved.
@nishimotz nishimotz merged commit 9cb89d6 into master Jun 17, 2026
5 checks passed
@nishimotz nishimotz deleted the fix/workflow-permissions branch June 17, 2026 09:17
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