Skip to content

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