Skip to content

Commit 01f6c8b

Browse files
authored
breakage workflow: update permissions
The final step of the breakage workflow (breakage/upload) fails when a pull request comes from a fork because GITHUB_TOKEN restricts permissions in that scenario. This PR always allows breakage/upload to run.
1 parent 3070e02 commit 01f6c8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/Breakage.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Ref: https://securitylab.github.com/research/github-actions-preventing-pwn-requests
22
name: Breakage
33

4+
# allow breakage/upload when a PR comes from a fork
5+
permissions:
6+
contents: write
7+
pull-requests: write
8+
49
# read-only repo token
510
# no access to secrets
611
on:

0 commit comments

Comments
 (0)