Skip to content

Add explicit workflow permissions for weekly build job#3552

Closed
arpitjain099 wants to merge 1 commit into
apache:mainfrom
arpitjain099:security/workflow-permissions-ci-build-artifacts
Closed

Add explicit workflow permissions for weekly build job#3552
arpitjain099 wants to merge 1 commit into
apache:mainfrom
arpitjain099:security/workflow-permissions-ci-build-artifacts

Conversation

@arpitjain099
Copy link
Copy Markdown
Contributor

Summary

  • Add an explicit permissions block to .github/workflows/ci-build-artifacts-push-maven.yml.
  • Scope token access to contents: read and packages: write for the deploy workflow.

Why

Declaring explicit workflow token permissions follows least-privilege defaults and makes required access clear for scheduled automation.

@andi-huber
Copy link
Copy Markdown
Contributor

Found related docs here https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions

However, not going to merge, as needs testing and the targeted workflow is currently disabled anyway. We'll also probably not enable any time soon.

But regardless, thanks for the hint! Might be useful for other workflows.

@andi-huber andi-huber closed this May 12, 2026
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.

2 participants