GITHUB_TOKEN の permissions - CI/CD用語集の定義
GITHUB_TOKEN の permissions は、自動生成される workflow トークンに許可される操作を設定します。
GITHUB_TOKEN の permissions は、各 workflow の run が受け取る自動トークンに付与される permissions: のスコープで、その run が実行できる API 操作を制御します。
workflow または job のレベルで permissions: を宣言すると、トークンをデフォルトのスコープから絞り込めます。contents: read を設定し、必要なものだけを追加するのが最小権限の原則です。
関連ガイド
Least-Privilege Token - CI/CD Glossary DefinitionLeast-Privilege Token: A least-privilege token is a credential granted only the minimum scopes required for a…
Third-Party Action Risk - CI/CD Glossary DefinitionThird-Party Action Risk: Third-party action risk is the supply-chain exposure from using actions you do not c…