Repository navigation
ci(scorecard): least-privilege token on publish workflows (#1903) - #1911
Merged
Merged
Conversation
Keep top-level contents: read; contents: write only on jobs that attach or push. Drop unused actions: write on the PyPI Homebrew caller and move SBOM attest/upload off the generate job so PRs do not get a write token. Closes #1903.
2 tasks done
…ssions: least-privilege em publish-pypi/sbom/homebrew-tap/native-packages/dependabot-sync | 2026-09-13 ``` -----BEGIN SSH SIGNATURE----- U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgyEpOM79Y37xE8qOhlhghEfLh9P TzRdk6n8nzLfBNGqwAAAAEZmlsZQAAAAAAAAAGc2hhNTEyAAAAUwAAAAtzc2gtZWQyNTUx OQAAAED6l4D493+wQEX3DATM9EVAu8kUXerBswF0r4HOJMGMvctMxoofrz+wrFXNPcGN1C o2Tcf2xU/3zBLCO1sjJxIM -----END SSH SIGNATURE----- ```
Collaborator
Author
|
Gate-Change-Approved-By: @FabioLeitao (#1911) | Scorecard Token-Permissions: least-privilege em publish-pypi/sbom/homebrew-tap/native-packages/dependabot-sync | head=ca6c61daa201ee9dbce0c0b120bdad9ea9f8cbf2 | 2026-09-13 |
Collaborator
Author
|
Gate-Change-Approved-By: @FabioLeitao (#1911) | Scorecard Token-Permissions: least-privilege em publish-pypi/sbom/homebrew-tap/native-packages/dependabot-sync (re-selo pos-conflito com #1871) | head=1d609c2ee0831993ad6726ed8b7732079f975d4d | 2026-09-13 |
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.
Summary
contents: readon publish workflows;contents: writeonly on jobs that attach or push.actions: writeon the PyPI Homebrew caller; keep OIDCid-tokenfor Trusted Publishing.attest-and-attachso PR generate jobs stay read-only.Closes #1903.
Test plan
tests/test_github_workflows.pytoken-permissions + SBOM attest guardsGate-Change-Approved-Byon HEAD (GATE_FILES)