Skip to content

refactor!: prefix reusable workflows with _, rename tier0 → _guards - #23

Closed
CMaintz wants to merge 1 commit into
mainfrom
refactor/prefix-workflows-and-guards-action
Closed

CMaintz wants to merge 1 commit into
mainfrom
refactor/prefix-workflows-and-guards-action

Conversation

@CMaintz

@CMaintz CMaintz commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Restructure, step 2 (the workflow rename; the presets split was #22). Groups the 9 reusable workflows under a _ prefix and renames tier0.yml → _guards.yml (functional name for secret-scan + ruleset-guard).

Why the prefix: GitHub forbids subdirectories in .github/workflows/ — every file sits at the top level — so a filename prefix is the only way to group the reusable library and separate it from the real triggers (lint-workflows, release-please, commitlint, which stay unprefixed).

Updated: foundry-init generated callers + $CI mapping + the generated guards: job name; each workflow's header usage example; README (table + prefix-convention note), OVERVIEW, FEATURES, DESIGN. Corrected the stale no_var-job doc mention (folded into lint). No CHANGELOG hand-edit — release-please owns it.

⚠️ BREAKING (marked ! → release-please will propose v2.0.0): reusable-workflow paths changed. Consumers pinned to @v1 keep the old paths (that alias stays frozen at the last v1.x); update the uses: path when adopting @v2. jobbuddy inlines its CI, so it's unaffected.

Not in this PR: the ruleset-guard composite action (guard-logic dedup for jobbuddy) — that's a follow-on with its own cross-repo ref handling. This PR is purely the structural rename.

Group the 9 reusable workflows under a _ prefix (GitHub forbids subdirs in
.github/workflows/, so a filename prefix is the only grouping GitHub allows) and give
tier0 a functional name: _guards.yml (secret scan + ruleset-guard). Triggers stay
unprefixed (lint-workflows, release-please, commitlint). Updated foundry-init's generated
callers + CI mapping + the guards job name, the header usage examples, and
README/OVERVIEW/FEATURES/DESIGN. Also corrected the stale no_var-job doc mention (folded
into lint by the earlier change).

BREAKING CHANGE: reusable-workflow paths changed. uses: .../java.yml@vX etc. must become
.../_java.yml, and tier0.yml -> _guards.yml. @v1 keeps the old paths (that alias stays
frozen); update the uses: path when moving to @v2.
@CMaintz

CMaintz commented Sep 25, 2026

Copy link
Copy Markdown
Owner Author

Superseded — folding the workflow _-prefix + tier0→_guards into the unified restructure PR on current main.

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