Skip to content

Decode anchored workflow pins before comparing identities - #59

Open
hyperpolymath wants to merge 6 commits into
mainfrom
codex/anchored-workflow-pins-20261125
Open

hyperpolymath wants to merge 6 commits into
mainfrom
codex/anchored-workflow-pins-20261125

Conversation

@hyperpolymath

@hyperpolymath hyperpolymath commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

Decode anchored workflow pins consistently in both static gates.

Testing

Hosted validation pending; no heavy local work.

Canonical source: template #484.

@gitnotebooks

gitnotebooks Bot commented Nov 25, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T08:48:02.332673Z 5f2ac53 New commits
🔒 Security Review ✅ Completed 2026-11-25T08:51:26.832131Z 5f2ac53 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The workflow pin checker now parses decoded YAML to locate pin values in nested mappings and arrays. It rejects multiple documents and non-scalar values. Pin-inspection callers report extraction failures instead of silently using the first output line.

Changes: Workflow pin inspection

Layer / File(s) Summary
YAML pin extraction and validation
scripts/check-workflow-edges.sh, tests/workflows/workflow_edges_test.sh
env_pin traverses decoded YAML mappings and arrays, and requires one document with a scalar pin. Tests cover anchored and aliased reusable-workflow and checkout pins.
Inspection failure handling
scripts/check-workflow-edges.sh, tests/workflows/workflow_edges_test.sh
Pin-inspection callers report extraction failures and skip the affected check or workflow. A test checks the reported HYPATIA_SHA inspection error.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • hyperpolymath/secret-types#52: This PR introduced YAML parsing and environment-binding resolution in the checkout-pin check that this change extends to decoded YAML pins.
Merge Risk: Minimal · up to 89613

This change makes the workflow pin checker decode anchored YAML values before comparing them, and it reports extraction failures. No actionable merge-blocking issue was found; the hosted regression suite should still pass before merge.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Description check Warning The description is a short Summary with one line, and it has no Changes list, no RSR Quality Checklist, no Testing details, and no Screenshots section. The author writes that hosted validation is pend… Add a Changes list that names the key edits. Those edits are the yq/jq decoding of workflow pins in env_pin, the failure propagation at the six caller sites, the removal of redundant head pipelines, and the new anchor and alias test cases. …
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title "Decode anchored workflow pins before comparing identities" matches the main change. The PR decodes YAML anchors and aliases in HYPATIA_SHA and hypatia-ref values before the pin comparison, …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Decode anchored workflow pins before comparing identities" matches the main change. The PR decodes YAML anchors and aliases in HYPATIA_SHA and hypatia-ref values before the pin comparison, and the raw summary confirms the env_pin parser change and the new anchor/alias tests. The title is specific and short, so it passes.

Full details: Description check

Explanation

The description is a short Summary with one line, and it has no Changes list, no RSR Quality Checklist, no Testing details, and no Screenshots section. The author writes that hosted validation is pending and gives no local test results. The PR objectives describe more detail (six caller sites, 134 controls, decoder-failure assertion, and the link to template #419) than the description states. The description also omits the template's required items: the checklist, the list of key changes, and a description of how the change was tested. The description therefore covers only the one-line purpose and a pointer to a canonical template PR. It is largely incomplete against the repository template.

Resolution

Add a Changes list that names the key edits. Those edits are the yq/jq decoding of workflow pins in env_pin, the failure propagation at the six caller sites, the removal of redundant head pipelines, and the new anchor and alias test cases. Add a Testing section that states which suites ran, the results, and the pending hosted gate. Complete the RSR Quality Checklist, and mark each item as checked or unchecked with a reason. Link the related issue or PR (#59, #419) with Closes or Refs wording. Add a note on whether the deed, CHANGELOG, or docs need updates.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0bce5bd and 89613f8.

Files selected for processing: 2

  • scripts/check-workflow-edges.sh
  • tests/workflows/workflow_edges_test.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Hypatia grid green

🟢 clean · commit 5f2ac53367cb · run 45579701438 · scope: this change (4 file(s))

Advisory: 11 row(s), worst 🔴 high (0 critical, 9 high) — reported, never grading the change.

Reporter Gate Status Critical High Medium Minor Since previous revision
Hypatia scan gating 🟢 clean 0 0 0 0 — no comparable baseline
panic-attack assail advisory 🟡 medium 0 0 2 0 — no comparable baseline
pons asinorum advisory 🟢 clean 0 0 0 0 — no comparable baseline
finishingbot (release readiness) advisory 🔴 high 0 9 5 0 — no comparable baseline
glambot (presentation quality) advisory 🔵 minor 0 0 0 5 — no comparable baseline
rhodibot (RSR compliance) advisory 🟢 clean 0 0 0 0 — no comparable baseline
accessibilitybot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
cipherbot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
echidnabot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
panicbot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
seambot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
sustainabot advisory ⚪ not applicable 0 0 0 0 — no comparable baseline
Hypatia scan: 24 finding(s)
  • 24 further finding(s) in files this change does not touch: reported, not graded (0 critical, 8 high).
panic-attack assail: 16 finding(s)
  • medium CommandInjection — scripts/check-hypatia-rule-order.sh — 81 potentially unquoted variable expansions in scripts/check-hypatia-rule-order.sh
  • medium CommandInjection — scripts/check-workflow-edges.sh — 157 potentially unquoted variable expansions in scripts/check-workflow-edges.sh
  • 14 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
pons asinorum: 9 finding(s)
  • 9 further finding(s) in files this change does not touch: reported, not graded (0 critical, 0 high).
finishingbot (release readiness): 174 finding(s)
  • high V1-DOC-ROADMAP.adoc — Required file ROADMAP.adoc not found (Project roadmap).
  • high TOOL-001 — .tool-versions file not found for asdf/mise version management.
  • high SCM-001-NEUROSYM.scm — Required SCM file NEUROSYM.scm not found (Neurosymbolic AI documentation).
  • high SCM-001-AGENTIC.scm — Required SCM file AGENTIC.scm not found (Agentic AI integration documentation).
  • high SCM-001-PLAYBOOK.scm — Required SCM file PLAYBOOK.scm not found (Operational playbooks and procedures).
  • high SCM-001-ECOSYSTEM.scm — Required SCM file ECOSYSTEM.scm not found (Project's place in the ecosystem).
  • high SCM-001-META.scm — Required SCM file META.scm not found (Meta-level information and architectural decisions).
  • high SCM-001-STATE.scm — Required SCM file STATE.scm not found (Project state and progress tracking).
  • high PH-100 — Found 124 placeholders, exceeds maximum allowed (0)
  • medium V1-COM-CONTRIBUTING.md — CONTRIBUTING.md file not found (Contribution guidelines).
  • medium V1-COM-CODE_OF_CONDUCT.md — CODE_OF_CONDUCT.md file not found (Code of conduct).
  • medium V1-SEC-001 — SECURITY.md not found for responsible disclosure.
  • medium TEST-001 — Could not determine if this is a Rust or Deno project.
  • medium REL-004 — No SECURITY.md file found
  • 160 further finding(s) in files this change does not touch: reported, not graded (0 critical, 3 high).
glambot (presentation quality): 95 finding(s)
  • info GS-001 — Install git-seo for comprehensive SEO analysis: https://github.com/hyperpolymath/git-seo
  • info MACH-007 — ECOSYSTEM.scm not found in .machine_readable/ directory.
  • info MACH-007 — META.scm not found in .machine_readable/ directory.
  • info MACH-007 — STATE.scm not found in .machine_readable/ directory.
  • info MACH-005 — No robots.txt found. Consider adding one for crawler control.
  • 90 further finding(s) in files this change does not touch: reported, not graded (0 critical, 2 high).
rhodibot (RSR compliance): 13 finding(s)
  • 13 further finding(s) in files this change does not touch: reported, not graded (0 critical, 12 high).
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
  • ⚪ not applicable: template default: enrol once the repository serves HTML
cipherbot: not_applicable — template default: enrol once the repository implements cryptography
  • ⚪ not applicable: template default: enrol once the repository implements cryptography
echidnabot: not_applicable — template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
  • ⚪ not applicable: template default: enrol once the repository carries proofs and an ECHIDNA engine is configured
panicbot: not_applicable — panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
  • ⚪ not applicable: panic-attack is already graded by the verdict grid's own panic-attack row, from static-analysis-gate.yml evidence; enrolling panicbot would report one scanner twice and give two rows that can disagree
seambot: not_applicable — template default: enrol once a seam register exists at spec/seams/seam-register.json
  • ⚪ not applicable: template default: enrol once a seam register exists at spec/seams/seam-register.json
sustainabot: not_applicable — reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)
  • ⚪ not applicable: reserved fleet slot; no adapter exists (gitbot-fleet bots/sustainabot/README.adoc)

Scope: static findings reported by each row's tool at the named commit. The table grades only findings in files this change touches, so the colour answers "does this change introduce anything?", not "what does the whole repository still carry?". Standing findings are counted in each accordion and in report.json; the baseline filter remains the place where acknowledged debt is recorded. The lane state is the worst GATING row; advisory rows are listed and counted but never set it. Purple, red, yellow and blue grade the worst GRADED finding present; orange is evidence missing, malformed or a scanner that did not run; grey is an explicit scope exclusion with its reason. No row is a security certification. report.json, badge.json and the raw findings are in the verdict-grid artifact on the linked run.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2dcec12c66

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/check-workflow-edges.sh Resolved
Comment thread scripts/check-workflow-edges.sh Resolved
Comment thread scripts/check-workflow-edges.sh Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6cc32cc00e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/check-workflow-edges.sh Outdated
$root | getpath($p)) |
if type == "object" or type == "array" then error("pin must be a scalar")
else tostring |
if test("\\s") then error("pin must not contain whitespace") else . end

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Allow whitespace inside exempted GitHub expressions

When one of these variables intentionally uses a normally formatted GitHub expression such as HYPATIA_REF: ${{ github.sha }}, this whitespace check makes env_pin fail and the edge gate rejects the workflow. The census below explicitly exempts values containing ${{ as floating-by-design, so validate whitespace only for literal pins (or exempt expressions before this check) rather than making the documented exemption unreachable for conventional expression syntax.

Useful? React with 👍 / 👎.

Comment on lines +160 to +164
(($p | length) == 2 and $p[0] == "env") or
(($p | length) == 4 and $p[0] == "jobs" and $p[2] == "env") or
(($p | length) == 6 and $p[0] == "jobs" and $p[2] == "steps" and
($p[3] | type) == "number" and $p[4] == "env") or
(($p | length) == 4 and $p[0] == "jobs" and $p[2] == "with" and

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include job-container environment bindings

When a producer runs as a container job and declares its tool pin under the valid jobs.<job_id>.container.env mapping, steps in that container receive the variable, but this whitelist omits that binding path. env_pin therefore returns empty and check_pin reports that the producer pins no tool even though the scanner uses the declared pin; include job-container environment mappings among the actual bindings.

Useful? React with 👍 / 👎.

@sonarqubecloud

Copy link
Copy Markdown

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