Skip to content

Add explicit permissions for CI and NOTICE regeneration workflows#472

Merged
rzo1 merged 1 commit into
apache:mainfrom
arpitjain099:security/workflow-permissions-ci-and-license-pr
May 18, 2026
Merged

Add explicit permissions for CI and NOTICE regeneration workflows#472
rzo1 merged 1 commit into
apache:mainfrom
arpitjain099:security/workflow-permissions-ci-and-license-pr

Conversation

@arpitjain099
Copy link
Copy Markdown
Contributor

Summary

  • Add explicit permissions in .github/workflows/maven.yml with contents: read.
  • Add explicit permissions in .github/workflows/license.yaml with only required write scopes:
    • contents: write
    • pull-requests: write

Why

These workflows currently rely on default token scopes. Declaring permissions explicitly improves least-privilege posture while preserving existing behavior, including automated NOTICE regeneration PRs.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099 arpitjain099 force-pushed the security/workflow-permissions-ci-and-license-pr branch from 808e07e to c6848b0 Compare May 13, 2026 17:13
@arpitjain099
Copy link
Copy Markdown
Contributor Author

Hi @mawiesne, gentle ping on this. PR has been open for 4 days without review. I noticed you've been on the recent-merger side of recent merges in this repo. When you have a moment, would you mind giving it a quick look? No urgency. Happy to address any feedback.

@mawiesne mawiesne requested a review from rzo1 May 18, 2026 03:46
@rzo1 rzo1 requested a review from mawiesne May 18, 2026 07:49
@rzo1 rzo1 merged commit f0c7762 into apache:main May 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants