Skip to content

feat: absorb the dependency-gate action - #2

Merged
jt-lumen merged 1 commit into
docs/trim-readmefrom
feat/absorb-dependency-gate
Sep 1, 2026
Merged

jt-lumen merged 1 commit into
docs/trim-readmefrom
feat/absorb-dependency-gate

Conversation

@jt-lumen

@jt-lumen jt-lumen commented Sep 1, 2026 •

Copy link
Copy Markdown
Collaborator

Moves velocity-exchange/dependency-gate in as dependency-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 master when #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 prefix
  • python3 tests/test_parser.py and open("action.yml") gain the prefix (test_parser.py resolves fixtures from __file__, so it needed none)
  • its push: trigger was [main]; this repo's default branch is master — it would have silently never run
  • workflows renamed to dependency-gate-{test,selfgate}.yml with distinct name:s now that they share a repo

The action itself is unchanged.

Verified

  • Full parser suite passes invoked the way CI invokes it (100+ cases)
  • action.yml still satisfies the contract its own CI asserts: composite, required lockfiles, the three outputs, every step bash, no Actions expressions interpolated into run: bodies
  • All four workflows parse

One 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

  • Tag namespace: this repo now hosts three independently-versioned things. Suggest prefixed tags (dependency-gate-v2.0.0), matching the <app>-vX.Y.Z convention infrastructure-v3 already uses.
  • Archive, don't delete the old repo once consumers are repointed — old SHAs must stay resolvable.

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
jt-lumen merged commit d275fdc into docs/trim-readme Sep 1, 2026
4 of 5 checks passed
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.

2 participants