fix(ci): repair instant-sync + clear Hypatia/SonarCloud findings from PR #21#22
Merged
Merged
Conversation
…F014/017/020 + userscript CWE-79 - instant-sync.yml: rewrite with env-mapping presence gate (secret -> job env, `if: env.X != ''`). Repairs the invalid YAML from d0db0a1 that broke repository-dispatch to .git-private-farm, and clears WF017. `secrets` is not available in `if:` (actions/runner#520) -- only env/vars are. - mirror.yml: env-mapping gate for all 6 ssh-agent jobs; gate radicle on RADICLE_KEY presence; stop interpolating the secret into the shell line. - scorecard-enforcer.yml: drop publish_results:true (publishing belongs to scorecard.yml; a publishing action may not share a file with run: -- WF014). - codeql.yml: add `language: actions` matrix entry (WF020). - userscript: replace 4 innerHTML assignments with createElement/textContent/ replaceChildren; remove dead escapeHtml helper (CWE-79; SonarCloud hotspot). https://claude.ai/code/session_01EqEysvTPzPwhS9ZGY7EYdr
Root causes, fixes, and up/downstream detection recommendations for the merge-past-red + broken auto-remediation that took estate propagation down. https://claude.ai/code/session_01EqEysvTPzPwhS9ZGY7EYdr
|
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
🔍 Hypatia Security ScanFindings: 56 issues detected
View findings[
{
"reason": "HTTP URL in code -- use HTTPS for non-localhost (1 occurrences, CWE-319)",
"type": "js_http_url_in_code",
"file": "/home/runner/work/empty-linter/empty-linter/userscript/empty-linter.user.js",
"action": "flag",
"rule_module": "code_safety",
"severity": "medium"
},
{
"reason": "Belt.Array deprecated -- use Array (12 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/TextTransform.res",
"action": "module_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Js.Array2 deprecated -- use Array (1 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/TextTransform.res",
"action": "search_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Js.String2 deprecated -- use String (9 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/TextTransform.res",
"action": "search_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Belt.Array deprecated -- use Array (11 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/ByteDetector.res",
"action": "module_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Js.Array2 deprecated -- use Array (2 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/ByteDetector.res",
"action": "search_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Js.String2 deprecated -- use String (25 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/ByteDetector.res",
"action": "search_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Belt.Array deprecated -- use Array (2 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/PathHandler.res",
"action": "module_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Js.String2 deprecated -- use String (13 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/core/PathHandler.res",
"action": "search_replace",
"rule_module": "migration_rules",
"severity": "high"
},
{
"reason": "Belt.Array deprecated -- use Array (6 occurrences)",
"type": "deprecated_api",
"file": "/home/runner/work/empty-linter/empty-linter/src/bindings/Deno.res",
"action": "module_replace",
"rule_module": "migration_rules",
"severity": "high"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
hyperpolymath
marked this pull request as ready for review
June 13, 2026 16:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Why
PR #21 merged with two red checks (
Hypatia,SonarCloud). The post-merge auto-remediationd0db0a1then brokeinstant-sync.yml(invalid YAML +secretsused inif:, which GitHub doesn't support), silently disablingrepository-dispatchto.git-private-farm— i.e. estate propagation. Since empty-linter is consumed across the estate's CI/CD, this is wide blast-radius, not a leaf failure.This follow-up repairs the live breakage and clears every finding.
Changes
instant-sync.ymlenv,if: env.X != '',withreadsenv). Repairs the invalid YAML.mirror.ymlssh-agentjobs; gateradicleonRADICLE_KEYand stop interpolating the secret into the shell.scorecard-enforcer.ymlpublish_results: true(publishing belongs toscorecard.yml; a publishing action may not share a file withrun:).codeql.ymllanguage: actionsmatrix entry.userscript/empty-linter.user.jsinnerHTML =withcreateElement/textContent/replaceChildren; remove deadescapeHtml.js_innerhtmlCWE-79 ×4 + SonarCloud hotspotWhy env-mapping and not Hypatia's literal
if: secrets.X != ''recipe:secretsis not available in anyif:(actions/runner#520). Env-mapping is the documented-correct pattern and clears WF017 structurally. Hypatia's recipe is itself broken — see the advisory inhypatia.Validation
instant-sync.ymlwas invalid onmain).instant-sync/mirrorstructurally confirmed: gates readenv.*, inputs readenv.*.node --check; zero functionalinnerHTMLremain.Notes
docs/reports/incident-2026-06-11-cicd-pr21.adoc.secret-scanner.ymlandscorecard.ymlcarrySPDX PMPL-1.0; per policy empty-linter must beMPL-2.0. License changes are owner-only/manual — surfaced for your action, not touched here.https://claude.ai/code/session_01EqEysvTPzPwhS9ZGY7EYdr
Generated by Claude Code