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

A workflow builds a container image and pushes it to GitHub Container Registry (ghcr.io) using the automatically provided GITHUB_TOKEN. The workflow also runs a linter and a test job that only need to read repository contents. Your security team requires that the workflow follow least-privilege for the GITHUB_TOKEN. What is the most appropriate way to configure permissions?

Reviewed for accuracy · Report an issueNext question