Skip to content

Restrict GitHub Actions permissions #8599

@bluetech

Description

@bluetech

There is now some functionality for restricting workflow permissions: https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/

Given the recent CodeCov trouble this sounds like a good idea.

I suggest we enable this setting for the repository, and specify needed permissions for specific workflow files. It might cause some failed runs initially but should be easily fixed.

Another thing we can do is to specify persist-credentials for the actions/checkout action when it's not needed.

Metadata

Metadata

Assignees

Labels

type: infrastructureimprovement to development/releases/CI structure

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions