Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit permission in publish cleanup job #3158

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

pderop
Copy link
Member

@pderop pderop commented Apr 15, 2024

in the publish CI, the cleanup job is using a too broad permission (permissions: write-all) when deleting the docs-build artifact.

According to https://docs.github.com/en/rest/actions/artifacts?apiVersion=2022-11-28#delete-an-artifact, we can limit the permission to only the necessary level: actions: write

@pderop pderop added the type/chore A task not related to code (build, formatting, process, ...) label Apr 15, 2024
@pderop pderop added this to the 1.2.0-M2 milestone Apr 15, 2024
@pderop pderop self-assigned this Apr 15, 2024
@pderop pderop requested a review from a team April 15, 2024 16:26
@pderop
Copy link
Member Author

pderop commented Apr 16, 2024

@violetagg , thanks!

@pderop pderop merged commit 546f72d into reactor:main Apr 16, 2024
13 of 14 checks passed
@pderop pderop deleted the reduce-permission-in-publish-cleanup branch April 16, 2024 13:30
pderop added a commit that referenced this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/chore A task not related to code (build, formatting, process, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants