Skip to content

#587 Add permissions blocks to all workflows#610

Open
VasilevNStas wants to merge 1 commit into
zerocracy:masterfrom
VasilevNStas:587-add-permissions-blocks
Open

#587 Add permissions blocks to all workflows#610
VasilevNStas wants to merge 1 commit into
zerocracy:masterfrom
VasilevNStas:587-add-permissions-blocks

Conversation

@VasilevNStas

Copy link
Copy Markdown
Contributor

Problem

All 10 workflow files lack explicit permissions: blocks. By default, GitHub Actions tokens have read/write permissions across all scopes, which is unnecessarily broad for CI checks and poses a security risk.

Solution

Added permissions: contents: read to all 10 workflow files. This grants only read access to repository contents — the minimum needed for actions/checkout and all lint/check steps in these workflows.

Affected files:

  • actionlint.yml
  • codecov.yml
  • copyrights.yml
  • markdown-lint.yml
  • pdd.yml
  • rake.yml
  • reuse.yml
  • typos.yml
  • xcop.yml
  • yamllint.yml

Closes #587

@VasilevNStas

Copy link
Copy Markdown
Contributor Author

@yegor256 plz review

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.

All 10 GitHub Actions workflows missing permissions block

1 participant