Commit aaa7ef6
committed
ci: grant pull-requests:write to openapi-validation job
The job uses actions/github-script to post a PR comment with spec
validation info, but failed with HTTP 403 "Resource not accessible by
integration" because the default GITHUB_TOKEN permissions for the
workflow were read-only.
Scope the new permissions to this job only (least privilege) and
keep `contents: read` for checkout — adding a `permissions:` block
implicitly drops all other defaults to none.1 parent 8a663c0 commit aaa7ef6
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| |||
0 commit comments