Skip to content

Commit fe5e0e5

Browse files
authored
GH-48780: [CI] Add missing permissions for reusable workflow calls (#48778)
### Rationale for this change Workflows `cpp_extra.yml`, `r_extra.yml` and `package_linux.yml` call reusable workflows (`check_labels.yml` and `report_ci.yml`) that require specific permissions. When #48771 added explicit permissions to these reusable workflows, the calling workflows were not updated to give those permissions. This caused `startup_failure` errors when these workflows were triggered on pull requests. Here are example failures: https://github.com/apache/arrow/actions/runs/20809257825 and https://github.com/apache/arrow/actions/runs/20803198596 ### What changes are included in this PR? Added missing permissions to the workflows ### Are these changes tested? Yes, I tested them within this PR. ### Are there any user-facing changes? No, dev-only. * GitHub Issue: #48780 Authored-by: Hyukjin Kwon <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent 5b1af01 commit fe5e0e5

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/cpp_extra.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ concurrency:
7777
cancel-in-progress: true
7878

7979
permissions:
80+
actions: read
8081
contents: read
82+
pull-requests: read
8183

8284
jobs:
8385
check-labels:

.github/workflows/package_linux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,10 @@ concurrency:
6161
cancel-in-progress: true
6262

6363
permissions:
64+
actions: read
6465
# Upload to GitHub Release
6566
contents: write
67+
pull-requests: read
6668

6769
jobs:
6870
check-labels:

.github/workflows/r_extra.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ concurrency:
6767
cancel-in-progress: true
6868

6969
permissions:
70+
actions: read
7071
contents: read
72+
pull-requests: read
7173

7274
jobs:
7375
check-labels:

0 commit comments

Comments
 (0)