Skip to content

Conversation

@HyukjinKwon
Copy link
Member

@HyukjinKwon HyukjinKwon commented Jan 8, 2026

Rationale for this change

Adds missing permissions: declaration to workflows, following the security best practices (see also #35708).

What changes are included in this PR?

Adds workflow-level permissions to workflows

Are these changes tested?

Tested in a54ab72

Are there any user-facing changes?

No, dev-only.

@github-actions
Copy link

github-actions bot commented Jan 8, 2026

⚠️ GitHub issue #48770 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added the awaiting review Awaiting review label Jan 8, 2026
@HyukjinKwon HyukjinKwon changed the title GH-48770: [CI] Add missing permissions declaration to check_labels.yml GH-48770: [CI] Add missing permissions declaration to workflows Jan 8, 2026

permissions:
actions: read
contents: read
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required by actions/checkout

workflow_call:

permissions:
actions: read
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required by archery ci report-email and archery ci report-chat

type: string

permissions:
contents: read
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required by actions/checkout

value: ${{ jobs.check-labels.outputs.force }}

permissions:
contents: read
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required by actions/checkout
Required by gh pr view

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Jan 8, 2026
@kou kou added the CI: Extra Run extra CI label Jan 8, 2026
@kou
Copy link
Member

kou commented Jan 8, 2026

Hmm... Why extra CI jobs aren't run...?

Anyway, could you add this?

diff --git a/.github/workflows/cpp_extra.yml b/.github/workflows/cpp_extra.yml
index 612175e60f..4b2290d077 100644
--- a/.github/workflows/cpp_extra.yml
+++ b/.github/workflows/cpp_extra.yml
@@ -26,6 +26,7 @@ on:
       - '.dockerignore'
       - '.github/workflows/check_labels.yml'
       - '.github/workflows/cpp_extra.yml'
+      - '.github/workflows/cpp_windows.yml'
       - '.github/workflows/report_ci.yml'
       - 'ci/conda_env_*'
       - 'ci/docker/**'
@@ -47,6 +48,7 @@ on:
       - '.dockerignore'
       - '.github/workflows/check_labels.yml'
       - '.github/workflows/cpp_extra.yml'
+      - '.github/workflows/cpp_windows.yml'
       - '.github/workflows/report_ci.yml'
       - 'ci/conda_env_*'
       - 'ci/docker/**'

@HyukjinKwon
Copy link
Member Author

Sure!

@HyukjinKwon
Copy link
Member Author

Let me try to run them in this PR .. one sec ...

@HyukjinKwon HyukjinKwon marked this pull request as draft January 8, 2026 02:58
@HyukjinKwon HyukjinKwon marked this pull request as ready for review January 8, 2026 03:49
@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented Jan 8, 2026

Tests passed at a54ab72. Should be good to have a look!

Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

But it seems that paths: doesn't work as expected...

@kou kou merged commit fdeac0b into apache:main Jan 8, 2026
6 checks passed
@kou kou removed the awaiting committer review Awaiting committer review label Jan 8, 2026
@github-actions github-actions bot added the awaiting merge Awaiting merge label Jan 8, 2026
@HyukjinKwon
Copy link
Member Author

Let me open another quick PR and see if this is triggered.

raulcd pushed a commit that referenced this pull request Jan 8, 2026
…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]>
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit fdeac0b.

There weren't enough matching historic benchmark results to make a call on whether there were regressions.

The full Conbench report has more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting merge Awaiting merge CI: Extra Run extra CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants