GitHub Actions permissions and GITHUB_TOKEN
The repository token
GitHub creates a GITHUB_TOKEN for each workflow job. Its access is bounded. Start with the operation the job needs, then select the corresponding permission; reading repository content and publishing a package need separate review.
A fictional lint job should not need broad write access merely to inspect source files. Conversely, a release job can fail after a successful build because its token cannot perform the publication. Inspect the effective permissions instead of adding every available write permission.
Separate boundaries
Token permissions, secret availability and OIDC trust answer different questions. A stored secret does not change the repository token’s permissions. Permission to request an identity token does not configure a cloud role.
The browser model checks selected permission behavior on its local fixtures. It doesn’t install a GitHub App, issue credentials or enforce an organization’s live policy. Review fork boundaries and untrusted input before connecting a workflow to sensitive operations.