chore(ci): harden supply-chain controls before reopening PRs
Isolate npm publish from PR CI, enforce frozen lockfiles and a 24h minimumReleaseAge, and document safe pull_request_target usage so fork PRs cannot reach publish credentials. Co-authored-by: Rotimi Best <rotimi-best@users.noreply.github.com>
This commit is contained in:
committed by
Rotimi Best
co-authored by
Rotimi Best
parent
bbf5eb24de
commit
9adc38bd8a
@@ -1,5 +1,9 @@
|
||||
name: 'Check PR'
|
||||
|
||||
# pull_request_target is used so title lint can comment on fork PRs.
|
||||
# SAFE ONLY because this workflow never checks out or executes PR code.
|
||||
# Do not add actions/checkout, pnpm install, build, or cache steps here.
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
@@ -9,6 +13,7 @@ on:
|
||||
- synchronize
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
|
||||
Reference in New Issue
Block a user