Interview Prep/GitHub Actions/Secrets, Variables, Environments & Permissions

List the `permissions` scopes you use most and what needs them.

IntermediateConceptSecrets, Variables, Environments & Permissions
Answer
Scope Needed for
contents: read/write checkout private repo / push commits, create tags and releases
id-token: write requesting an OIDC token
packages: write pushing to GHCR
pull-requests: write commenting, labeling PRs
issues: write issue comments and labels
checks: write creating check runs with annotations
statuses: write commit statuses
security-events: write uploading SARIF to code scanning
attestations: write artifact attestations
actions: read/write reading or cancelling runs, managing caches
deployments: write deployment records outside environments
pages: write GitHub Pages deploys
All GitHub Actions questions Roadmap: GitHub Actions

More on Secrets, Variables, Environments & Permissions