Repository navigation
Decode anchored workflow pins before comparing identities - #59
hyperpolymath wants to merge 6 commits into
Conversation
|
Review these changes at https://app.gitnotebooks.com/hyperpolymath/secret-types/pull/59 |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
🟢 clean · commit Advisory: 11 row(s), worst 🔴 high (0 critical, 9 high) — reported, never grading the change.
Hypatia scan: 24 finding(s)
panic-attack assail: 16 finding(s)
pons asinorum: 9 finding(s)
finishingbot (release readiness): 174 finding(s)
glambot (presentation quality): 95 finding(s)
rhodibot (RSR compliance): 13 finding(s)
accessibilitybot: not_applicable — template default: enrol once the repository serves HTML
cipherbot: 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
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
seambot: 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)
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. |
There was a problem hiding this comment.
💡 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".
There was a problem hiding this comment.
💡 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".
| $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 |
There was a problem hiding this comment.
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 👍 / 👎.
| (($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 |
There was a problem hiding this comment.
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 👍 / 👎.
|



Summary
Decode anchored workflow pins consistently in both static gates.
Testing
Hosted validation pending; no heavy local work.
Canonical source: template #484.