🔥 3-day streak
GitHub Actions (GH-200)57 / 142
Question 57 of 142

A workflow in your repository builds a container image and then attempts to create a GitHub Release using a release step (for example the gh CLI). The workflow file contains a top-level `permissions:` block set to `contents: read` and no other scopes. The build steps succeed, but the release-creation step fails with a 403 error. Your security team requires you to grant only the minimum additional access needed for this job to succeed, without loosening the default token behavior elsewhere. What is the most appropriate change?

Reviewed for accuracy · Report an issueNext question