Skip to content

CI: Declare workflow permissions#9227

Merged
mbien merged 1 commit intoapache:masterfrom
mbien:ci-permissions
Feb 24, 2026
Merged

CI: Declare workflow permissions#9227
mbien merged 1 commit intoapache:masterfrom
mbien:ci-permissions

Conversation

@mbien
Copy link
Member

@mbien mbien commented Feb 24, 2026

the workflows were intentionally made to require no noteworthy permissions, this locks it in place.

note: unfortunately this can't be tested before its in master, since the workflow run in this PR would still use the org permissions (even though the log will state otherwise).

@mbien mbien added this to the NB30 milestone Feb 24, 2026
@mbien mbien requested a review from neilcsmith-net February 24, 2026 18:01
@mbien mbien added CI continuous integration changes ci:no-build [ci] disable CI pipeline labels Feb 24, 2026
@neilcsmith-net
Copy link
Member

Thanks for looking at this. Looks good, assuming artifact upload doesn't require permissions?

@mbien
Copy link
Member Author

mbien commented Feb 24, 2026

upload/download/delete to/from workflow storage doesn't require one as far as I know. Cache migrates around so it needs write permission.

@mbien
Copy link
Member Author

mbien commented Feb 24, 2026

I tested it in the master branch of my fork too, but forks have also slightly different rules so I am not sure how representative that test run is: https://github.com/mbien/netbeans/actions/runs/22361486268

Copy link
Member

@neilcsmith-net neilcsmith-net left a comment

Choose a reason for hiding this comment

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

Thanks. Just checking - seems curious it doesn't need a permission. Let's see if anything breaks! 😄

@mbien mbien merged commit c05e0a4 into apache:master Feb 24, 2026
38 checks passed
@mbien
Copy link
Member Author

mbien commented Feb 24, 2026

one thing i have to test with a PR if the expression language needs permissions for reading the PR labels etc. Going to rebase #9217 and tell it to upload a dev build

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

Labels

ci:no-build [ci] disable CI pipeline CI continuous integration changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants