Skip to content

Pin fork shim safety properties; amend ADR 0020 - #1947

Merged
neuromechanist merged 3 commits into
devfrom
chore/fork-shim-pins-adr
Oct 25, 2026
Merged

neuromechanist merged 3 commits into
devfrom
chore/fork-shim-pins-adr

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Follow-up to #1784, from its review.

Changes

  • test/workflow-fork-shims.test.ts: for both fork-facing shims (bids-validation.yml, version-check.yml), assert the job holds permissions: {} and the workflow none at top level, the App token is minted once and only for .github, the dispatch client_payload carries exactly the current keys (so a new key such as a title or body fails), and the trigger set is exact (pull_request absent, the others kept).
  • ADR 0020: a dated amendment recording why pull_request_target is safe for the shims and that a shim change reaches a repository only on redeploy; README index line updated.

Test plan

  • bun test on workflow-fork-shims, adr-index and workflow-yaml: 56 pass
  • Each new assertion verified to fail against a deliberately broken template (extra payload key, wider token scope, permissions removed, pull_request added, a trigger removed, a checkout added), then reverted
  • typecheck and lint clean

@neuromechanist
neuromechanist merged commit 41f93ac into dev Oct 25, 2026
20 checks passed
@neuromechanist
neuromechanist deleted the chore/fork-shim-pins-adr branch October 25, 2026 00:14
@neuromechanist neuromechanist mentioned this pull request Oct 26, 2026
10 of 11 tasks

This branch was previously deployed

1 inactive deployment
npm — 2c0cae3f Deployed Oct 25, 2026 by neuromechanist via publish #3941
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant