Commit 396fec1
authored
Fix release note generation by adding missing permissions (#8484)
## Summary of changes
Adds `pull_requests` permission to draft-release `dd-octo-sts`
chainguard file
## Reason for change
The release note generation has been silently failing since we switched
to STS:
```
Fetching milestones...
Found vNext-v3 milestone: 216
Fetching previous release details
Fetching Issues assigned to vNext-v3
Found 0 issues, building release notes.
```
I think that's because we're missing the `pull_requests` permission in
the dd-octo-sts file, and the issues endpoint we're using silently
filters this out. This also seems to _only_ apply to _app_ permissions,
which is what dd-octo-sts uses, not to fine-grained tokens, which is why
we couldn't replicate it locally.
## Implementation details
- Added `pull_requests: read` to the draft release STS definition.
- Removed permissions for the "ambient" GITHUB_TOKEN, as these aren't
actually used, other than for the OIDC exchange, and just add confusion
## Test coverage
Nope, we just have to wait for the next release, and hope nothing breaks
😬1 parent ac962de commit 396fec1
4 files changed
Lines changed: 13 additions & 15 deletions
File tree
- .github
- chainguard
- workflows
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
44 | 45 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 46 | + | |
| 47 | + | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 34 | + | |
| 35 | + | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
0 commit comments