# GitHub Actions: Control permissions for GITHUB\_TOKEN

DevFeed: [GitHub Actions: Control permissions for GITHUB\_TOKEN](<https://devfeed.tech/articles/github-actions-control-permissions-for-github-token-74472.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token>)

Author: phanatic

Published: 2021-04-20T16:01:01Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [GitHub API](<https://devfeed.tech/topics/github-api.md>)

Tags: [actions](<https://devfeed.tech/tags/actions.md>), [api](<https://devfeed.tech/tags/api.md>), [contents](<https://devfeed.tech/tags/contents.md>), [control](<https://devfeed.tech/tags/control.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [github-api](<https://devfeed.tech/tags/github-api.md>), [job](<https://devfeed.tech/tags/job.md>), [least-privilege](<https://devfeed.tech/tags/least-privilege.md>), [organization](<https://devfeed.tech/tags/organization.md>), [permissions](<https://devfeed.tech/tags/permissions.md>), [secret](<https://devfeed.tech/tags/secret.md>), [settings](<https://devfeed.tech/tags/settings.md>), [token](<https://devfeed.tech/tags/token.md>), [workflow](<https://devfeed.tech/tags/workflow.md>), [workflows](<https://devfeed.tech/tags/workflows.md>), [write](<https://devfeed.tech/tags/write.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

## AI overview

GitHub Actions lets workflows limit the automatically generated `GITHUB_TOKEN` by setting `permissions` at the workflow or job level; any omitted permission becomes `none`. Tokens are created per job and expire when it completes. Public fork pull requests always receive read access regardless of configured permissions. Repository or organization administrators can set the default to read/write across scopes (the current default) or to read-only repository contents. The latter is sufficient for workflows that only clone and build; workflows needing more access must request it in their YAML.

## Source excerpt

GitHub Actions now lets you control the permissions granted to the GITHUB_TOKEN secret. The GITHUB_TOKEN is an automatically generated secret that lets you make authenticated calls to the GitHub API...