Skip to content

Add explicit permissions for CI and NOTICE regeneration workflows#472

Open
arpitjain099 wants to merge 1 commit into
apache:mainfrom
arpitjain099:security/workflow-permissions-ci-and-license-pr
Open

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

Conversation

@arpitjain099
Copy link
Copy Markdown

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
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.

1 participant