Harden CI against malicious PRs#10
Merged
Merged
Conversation
- CODEOWNERS: auto-request maintainer review on every PR, mandatory code-owner approval for workflows + install scripts + source files - dependabot.yml: weekly PRs that bump pinned action SHAs to latest release - Pin actions/checkout to SHA (v4.3.1) so an upstream compromise of the moving v4 tag does not silently execute attacker code in our runners - Default workflow permissions to contents:read; release.yml keeps its explicit contents:write opt-in so writes are visible per-workflow
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
Defense-in-depth against malicious contributor PRs and supply-chain attacks. None of this changes runtime behavior of phpvm — only what GitHub Actions allows.
ghoutside this PR).actions/checkout(@v4.3.1→34e114876b0b11c390a56381ad16ebd13914f8d5). If the movingv4tag is force-pushed by an attacker who compromises the action repo, our runners still execute the verified commit we pinned to.permissions: contents: readat CI workflow level — defense-in-depth so any newly added job inherits read-only by default.release.ymlkeeps its explicitcontents: writeso writes remain visible per-workflow.Test plan
dependabot.yml(visible in Insights → Dependency graph → Dependabot)ghcommands provided in the chat🤖 Generated with Claude Code