Skip to content

Add read-only permissions to ci.yml#23

Open
mendral-app[bot] wants to merge 1 commit intomainfrom
mendral/ci-readonly-permissions
Open

Add read-only permissions to ci.yml#23
mendral-app[bot] wants to merge 1 commit intomainfrom
mendral/ci-readonly-permissions

Conversation

@mendral-app
Copy link
Copy Markdown

@mendral-app mendral-app bot commented Feb 25, 2026

Summary

  • Add explicit permissions: contents: read to ci.yml, restricting the GITHUB_TOKEN for lint and test jobs to read-only access
  • Both jobs only need contents: read for actions/checkout; no write permissions are required
  • Aligns with least-privilege principle already applied in release.yml, reducing blast radius from a supply chain compromise

Insight: Restrict workflow permissions to least privilege


Note

Created by Mendral. Tag Mendral (@mendral-app) with feedback or questions.

Add top-level permissions block with contents: read to ci.yml.
The lint and test jobs only need read access for checkout;
this limits blast radius from a compromised dependency or step.
@mendral-app mendral-app bot marked this pull request as ready for review February 25, 2026 04:13
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.

0 participants