Skip to content

Commit ea2ae1c

Browse files
[v3-2-test] Grant write permissions to scheduled CI upgrade check workflows (#65168) (#65176)
The scheduled upgrade check wrappers declared `contents: read`, which caps the permissions of the reusable `upgrade-check.yml` they call. That workflow needs `contents: write` and `pull-requests: write` to push the upgrade branch and open a draft PR, so every scheduled run failed immediately with startup_failure: The workflow is requesting 'contents: write, pull-requests: write', but is only allowed 'contents: read, pull-requests: none'. Raise the caller permissions to the ceiling required by the callee so the scheduled upgrade PR job can actually run. (cherry picked from commit 8291f37) Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
1 parent 1b12a49 commit ea2ae1c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/scheduled-upgrade-check-main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ on: # yamllint disable-line rule:truthy
2323
- cron: '0 6 * * 1,3,5'
2424
workflow_dispatch:
2525
permissions:
26-
contents: read
26+
contents: write
27+
pull-requests: write
2728
jobs:
2829
upgrade-main:
2930
name: "[main] Upgrade"

.github/workflows/scheduled-upgrade-check-v3-2-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ on: # yamllint disable-line rule:truthy
2323
- cron: '0 6 * * 2,4'
2424
workflow_dispatch:
2525
permissions:
26-
contents: read
26+
contents: write
27+
pull-requests: write
2728
jobs:
2829
upgrade-v3-2-test:
2930
name: "[v3-2-test] Upgrade"

0 commit comments

Comments
 (0)