#1695 #1696 #1697: harden workflow security — permissions and persist-credentials#1761
Open
VasilevNStas wants to merge 1 commit into
Open
#1695 #1696 #1697: harden workflow security — permissions and persist-credentials#1761VasilevNStas wants to merge 1 commit into
VasilevNStas wants to merge 1 commit into
Conversation
- Add permissions: block to all 17 workflows that were missing it (contents: read for lint/CI, issues: write for titles, contents+PR write for up) - Remove unused actions: write from zerocracy.yml - Add persist-credentials: false to all actions/checkout steps
Contributor
Author
|
@yegor256 plz review |
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.
Closes #1695 (add permissions to 17 workflows)
Closes #1696 (persist-credentials: false on all checkouts)
Closes #1697 (remove unused actions: write from zerocracy.yml)
All three issues affect the same set of workflow files with the same root cause (GitHub Actions security hardening), so they are grouped into one PR.
Changes:
permissions: contents: readto 17 workflow files that lack explicit permissions blockspersist-credentials: falseto allactions/checkoutsteps to prevent credential leakageactions: writepermission from zerocracy.yml