Skip to content

Limit GH Actions Token Permissions #14333

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

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

maennchen
Copy link
Member

Change

Sets top level permissions for each GH Action workflow to contents: read and gives more permissions to jobs where necessary.

Reason

Each job should have the minimal set of permissions available so that it can't access / manipulate information in case of a malicious action or if a user manages to inject code into the CI.

This is also recommended by ScoreCard: https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions

@josevalim josevalim merged commit 37faa67 into elixir-lang:main Mar 17, 2025
8 of 10 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@maennchen maennchen deleted the jm/token_permissions branch March 17, 2025 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants