Skip to content

Commit 151d16b

Browse files
authored
Merge pull request #2 from nnellans/nnellans-patch-1
Update README.md
2 parents 700e7ef + fc9d07d commit 151d16b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ on:
109109
- If multiple events happen at the same time, then multiple runs of the workflow will trigger
110110

111111
# Permissions for the GITHUB_TOKEN
112-
[Documentation - Permissions for the GitHub Token](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token)
112+
[Documentation - Modifying the permissions for the GITHUB_TOKEN](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token#modifying-the-permissions-for-the-github_token)
113+
<br />[Documentation - Workflow Syntax - Permissions](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions)
113114
- Use this if you want to modify the default permissions granted to the `GITHUB_TOKEN`
114-
- Optional, the default can be set (by an admin) to either a `permissive` preset or a `restricted` preset (more info at the link above)
115+
- Optional, the default can be set in the repo settings (by an admin) to either a `permissive` preset or a `restricted` preset
115116
- As a good security practice, you should grant the `GITHUB_TOKEN` the least required access
116117
- When the `permissions` key is used, all unspecified permissions are set to `none`, with the exception of the `metadata` scope, which always gets `read` access.
117118
- Supported scopes for `permissions`: workflow-level, job-level
@@ -120,16 +121,17 @@ on:
120121
# option 1: full syntax
121122
permissions:
122123
actions: read | write | none
124+
attestations: read | write | none
123125
checks: read | write | none
124126
contents: read | write | none
125127
deployments: read | write | none
128+
discussions: read | write | none
126129
id-token: read | write | none
127130
issues: read | write | none
128-
discussions: read | write | none
131+
models: read | none
129132
packages: read | write | none
130133
pages: read | write | none
131134
pull-requests: read | write | none
132-
repository-projects: read | write | none
133135
security-events: read | write | none
134136
statuses: read | write | none
135137

0 commit comments

Comments
 (0)