You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CI] Scope workflow permissions and secret inheritance #49729
Some workflows use overly broad permissions or pass all secrets to called workflows via secrets: inherit. These should be tightened to follow the principle of least privilege.
Permissions
.github/workflows/package_linux.yml has contents: write at the workflow level — this should be scoped to the specific job that needs it.
Secret inheritance
The following workflows pass all secrets to reusable workflows via secrets: inherit instead of explicitly listing required secrets:
report_ci needs only github.token, secrets.ARROW_SMTP_PASSWORD and ${{ secrets.ARROW_ZULIP_WEBHOOK }}.
So we can list them explicitly instead of using secrets: inherit.
In general, minimum permissions/secrets are better but the ASF GitHub Actions policy doesn't require them. So these changes are not required. They are just better.
If you can create a PR with generative AI, let's do them.
Activity
thisisnic commentedon Apr 14, 2026
I don't think we need this, as we're pinning to SHAs in #49735 so this is already mitigated - what do you think @kou?
kou commentedon Apr 15, 2026
We can move
arrow/.github/workflows/package_linux.yml
Lines 67 to 68 in 4eca507
arrow/.github/workflows/package_linux.yml
Line 79 in 4eca507
It seems that
python.ymlandr.ymldoesn't havesecrets: inherit.Other workflows use https://github.com/apache/arrow/blob/main/.github/workflows/check_labels.yml and https://github.com/apache/arrow/blob/main/.github/workflows/report_ci.yml .
check_labelsneeds onlygithub.token.report_cineeds onlygithub.token,secrets.ARROW_SMTP_PASSWORDand${{ secrets.ARROW_ZULIP_WEBHOOK }}.So we can list them explicitly instead of using
secrets: inherit.In general, minimum permissions/secrets are better but the ASF GitHub Actions policy doesn't require them. So these changes are not required. They are just better.
If you can create a PR with generative AI, let's do them.
thisisnic commentedon Apr 16, 2026
Thanks! Should be easily automated with genAI, I'll get a PR up
GH-49729: [CI] Scope workflow permissions and secret inheritance (#49773
thisisnic commentedon Apr 18, 2026
Issue resolved by pull request 49773
#49773
apacheGH-49729: [CI] Scope workflow permissions and secret inheritance (