Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix(test): accept and verify immutable action pins
Sima Bagheri782120937fae
diff --git a/archify/test/release-package-gates.test.mjs b/archify/test/release-package-gates.test.mjsindex ec2ba363..3a4ed59b 100644--- a/archify/test/release-package-gates.test.mjs+++ b/archify/test/release-package-gates.test.mjs@@ -51,22 +51,11 @@ function workflowJob(workflow, name) {const next = workflow.slice(start + marker.length).search(/\n [a-z][a-z0-9-]*:\n/);return workflow.slice(start, next === -1 ? workflow.length : start + marker.length + next);}-function escapeRegExp(value) {- return value.replace(/[.*+?^${}()|[\]\\]/g, '\\function workflowJob(workflow, name) {- const marker = ` ${name}:`;- const start = workflow.indexOf(marker);- assert.notEqual(start, -1, `workflow is missing the "${name}" job`);- const next = workflow.slice(start + marker.length).search(/\n [a-z][a-z0-9-]*:\n/);- return workflow.slice(start, next === -1 ? workflow.length : start + marker.length + next);-}-');-}-function assertPinnedAction(section, action, sha, version) {- assert.match(- section,- new RegExp(`uses:\\s+${escapeRegExp(action)}@${sha}\\s+#\\s+${escapeRegExp(version)}(?:\\s|$)`),- `${action} must remain pinned to the reviewed ${version} commit`,+ const expected = `uses: ${action}@${sha} # ${version}`;+ assert.ok(+ section.includes(expected),+ `${action} must remain pinned to the reviewed ${version} commit (${sha})`,);}