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

Set read-only permissions on GitHub workflows #779

Merged
merged 2 commits into from
Mar 29, 2023

Conversation

pnacht
Copy link
Contributor

@pnacht pnacht commented Mar 20, 2023

Fixes #778

As per the linked issue, this workflow sets read-only top-level permissions on all workflows.

It is my understanding that the jobs in release.yml all require write permissions (they all set git config, so I assume commits will be written and pushed), so those have been given at the job level. This ensures that if a new job is added in the future that doesn't require write permissions, it'll only have read access.

If I misunderstood something and other workflows require additional permissions or some jobs in release.yml don't require write access, let me know and I'll fix the PR.

Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
….yml

Signed-off-by: Pedro Kaj Kjellerup Nacht <pnacht@google.com>
@pnacht pnacht changed the title Token permissions Set read-only permissions on GitHub workflows Mar 20, 2023
@normanmaurer normanmaurer merged commit 020d8e4 into netty:main Mar 29, 2023
@normanmaurer
Copy link
Member

@pnacht merged... thanks!

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.

Set read-only token permissions for GitHub Action workflows
2 participants