Repository navigation
ci(workflows): 🔒 limit GITHUB_TOKEN permissions - #422
Merged
Merged
Conversation
Set a workflow-level `permissions: contents: read` in the deploy, lint, nix, qa-analysis and test workflows to resolve the actions/missing-workflow-permissions code scanning alerts. Assisted-by: Pi:claude-opus-4.8
robertodr
requested review from
diagonal-hamiltonian,
fpietra and
ludmilaasb
as code owners
October 23, 2026 09:02
robertodr
enabled auto-merge (squash)
October 23, 2026 09:03
|
Docs preview: https://pr-422.monoprop-docs.pages.dev |
robertodr
requested review from
Panadestein and
davidemateria
and removed request for
diagonal-hamiltonian and
fpietra
October 23, 2026 09:09
ludmilaasb
approved these changes
Oct 23, 2026
JoshCudbyAlgo
approved these changes
Oct 23, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #422 +/- ##
=======================================
Coverage 97.99% 97.99%
=======================================
Files 14 14
Lines 797 797
Branches 111 111
=======================================
Hits 781 781
Misses 11 11
Partials 5 5
Flags with carried forward coverage won't be shown. Click here to find out more. |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



🤖 AI text below 🤖
Summary
GitHub code scanning reports 14 open
actions/missing-workflow-permissionsalerts: thedeploy,lint,nix,qa-analysisandtestworkflows don't limit theGITHUB_TOKEN, so it gets the repository default permissions. This sets a workflow-levelpermissions: contents: readin each of them.Jobs that already declare their own
permissions(the PyPI upload and release asset jobs indeploy.yml, the sanitizer and clang-tidy jobs inqa-analysis.yml) keep them, since job-level blocks override the workflow-level one.Changes
permissions: contents: readtodeploy.yml,lint.yml,nix.yml,qa-analysis.ymlandtest.yml.Checklist
docs/,CONTRIBUTING.md) if neededCHANGELOG/ release notes updated if applicableNot applicable: CI configuration only. Please check that the SonarQube job still works on PRs, as it may need
pull-requests: read.AI/LLM disclosure
Summary by CodeRabbit