Repository navigation
feat: absorb the dependency-gate action - #2
Merged
Merged
Conversation
Moves velocity-exchange/dependency-gate in as dependency-gate/, so the org's
shared CI lives in one protected repo instead of two. It is a composite action
with a Python parser and no build artifact, so it relocates as plain files.
Relocation fixes, since everything in it assumed the repo root:
- `uses: ./` -> `uses: ./dependency-gate` (3 call sites)
- `lockfiles:` fixture paths gain the dependency-gate/ prefix
- `python3 tests/test_parser.py` and `open("action.yml")` gain the prefix;
test_parser.py itself resolves fixtures from __file__, so it needed none
- its `push:` trigger was `[main]`; this repo's default branch is `master`
- both workflows renamed to dependency-gate-{test,selfgate}.yml and given
distinct `name:`s, now that they share a repo
The action itself is unchanged; it locates its parser via $GITHUB_ACTION_PATH,
which already works from a subdirectory.
Verified: the full parser suite passes when invoked the way CI invokes it, and
action.yml still satisfies the contract its own CI asserts (composite, required
lockfiles input, the three outputs, every step bash, no Actions expressions
interpolated into run bodies).
Note the test workflow now carries paths filters. YAML anchors were NOT used to
share them - GitHub Actions does not support anchors, and a workflow using them
fails to parse.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
jt-lumen
requested review from
0xahzam,
ChesterSim,
ChewingGlass,
csadminlc and
noah-velocity-admin
as code owners
September 1, 2026 04:09
ChesterSim
approved these changes
Sep 1, 2026
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.
Moves
velocity-exchange/dependency-gatein asdependency-gate/, so the org's shared CI lives in one protected repo instead of two.Stacked on #1 (README trim) to avoid a conflict; GitHub will retarget this to
masterwhen #1 merges.Why it moves cleanly
It's a composite action with a Python parser — no
dist/build artifact — so it relocates as plain files. It already locates its parser via$GITHUB_ACTION_PATH, which works unchanged from a subdirectory.Relocation fixes
Everything around it assumed the repo root:
uses: ./→uses: ./dependency-gate(3 call sites)lockfiles:fixture paths gain the prefixpython3 tests/test_parser.pyandopen("action.yml")gain the prefix (test_parser.pyresolves fixtures from__file__, so it needed none)push:trigger was[main]; this repo's default branch ismaster— it would have silently never rundependency-gate-{test,selfgate}.ymlwith distinctname:s now that they share a repoThe action itself is unchanged.
Verified
action.ymlstill satisfies the contract its own CI asserts: composite, requiredlockfiles, the three outputs, every stepbash, no Actions expressions interpolated intorun:bodiesOne trap avoided: the paths filters are written out literally rather than shared via a YAML anchor — GitHub Actions does not support anchors, and a workflow using them fails to parse.
Not done here — consumer repointing
Eight repos consume this: infrastructure-v3, internal-keeper-bot, protocol-v2-mono, vamm-crank, velocity-common, velocity-docs, velocity-docs-private, velocity-v1.
They pin by SHA, so nothing breaks while both repos exist. Repointing is a separate change and needs care: the gate is a required check via org ruleset, so a bad
uses:blocks PRs org-wide. Worth doing one repo first and watching it before the rest.Also still blocked on this repo being made public — velocity-common and velocity-docs are public and can't consume a private repo.
Follow-ups
dependency-gate-v2.0.0), matching the<app>-vX.Y.Zconvention infrastructure-v3 already uses.