Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/emit/pipeline.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ describe("governancePipeline", () => {
const yaml = buildYaml();
// Every `uses:` line must pin to a 40-char commit SHA.
// The serializer wraps values with special chars in single quotes, and
// SHA-pinned warden steps include a `# v1` inline comment, so we strip
// SHA-pinned warden steps include a `# v0.1.0` inline comment, so we strip
// trailing quote, whitespace, and any `# …` comment before matching.
const SHA_RE = /^[a-f0-9]{40}$/;
const usesLines = yaml
Expand Down Expand Up @@ -164,13 +164,13 @@ describe("governancePipeline", () => {

// ── Dogfood: github-warden Action reference ────────────────────

test("warden steps use intentius/github-warden SHA-pinned with # v1 comment", () => {
test("warden steps use intentius/github-warden SHA-pinned with # v0.1.0 comment", () => {
const yaml = buildYaml();
// Both jobs should use the warden action pinned to the v1 commit SHA.
// The serializer quotes the value (special chars), so look for the SHA
// followed by the inline comment inside single quotes.
expect(yaml).toContain(
"50db522e57c4ccdb36af932062ee38839bc1b88e # v1"
"50db522e57c4ccdb36af932062ee38839bc1b88e # v0.1.0"
);
// Two warden steps (dry-run + apply), each appear once.
const count = (
Expand Down
6 changes: 3 additions & 3 deletions src/emit/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CHECKOUT_SHA = "11bd71901bbe5b1630ceea73d27597364c9af683";
* intentius/github-warden v1
* https://github.com/intentius/github-warden/releases/tag/v1
*
* SHA-pinned to satisfy GHA029. The `# v1` comment preserves human readability
* SHA-pinned to satisfy GHA029. The `# v0.1.0` comment preserves human readability
* while preventing silent tag-repoint attacks. Warden's own audit (GHA021/029)
* enforces this pattern — the emitted pipeline dogfoods it.
*/
Expand Down Expand Up @@ -165,7 +165,7 @@ export function governancePipeline(opts: GovernancePipelineOptions = {}) {

const dryRunWardenStep = new Step({
name: "Dry-run reconcile",
uses: `intentius/github-warden@${GITHUB_WARDEN_SHA} # v1`,
uses: `intentius/github-warden@${GITHUB_WARDEN_SHA} # v0.1.0`,
with: {
command: "reconcile",
config: configPath,
Expand Down Expand Up @@ -212,7 +212,7 @@ export function governancePipeline(opts: GovernancePipelineOptions = {}) {

const applyWardenStep = new Step({
name: "Apply reconcile",
uses: `intentius/github-warden@${GITHUB_WARDEN_SHA} # v1`,
uses: `intentius/github-warden@${GITHUB_WARDEN_SHA} # v0.1.0`,
with: {
command: "reconcile",
config: configPath,
Expand Down
Loading