Skip to content

Commit

Permalink
Default repository's permissions of the GITHUB_TOKEN (open-telemetry#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
pellared authored May 18, 2021
1 parent 09ad446 commit 2e3c3a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions specification/repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ approval is granted, GDI projects MUST NOT cut a GA release.
- MUST [limit permissions of
`GITHUB_TOKEN`](https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token)
when used
- MUST set [the repository's default permission](https://docs.github.com/en/github/administering-a-repository/disabling-or-limiting-github-actions-for-a-repository#setting-the-permissions-of-the-github_token-for-your-repository)
to just read access for the `contents` scope.
- MUST only set the absolutely required `permissions` (least privilege)
- MUST set `permissions` for individual `jobs`

Expand Down

0 comments on commit 2e3c3a6

Please sign in to comment.