fix(ingest): serialize ingests + fix scan-all REPOS_DIR path leak#41
Merged
Conversation
scan-all.sh: `/var$REPOS_DIR` concatenated a literal `/var` prefix, producing `/var$REPOS_DIR` when REPOS_DIR was unset. Replace with a proper guard: use REPOS_DIR only when it is non-empty and points to an existing directory. ingest.yml: concurrent repository_dispatch deliveries race on the commit+push; one writer loses. Add a concurrency group (cancel-in-progress: false) to queue them instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
lint-workflows check requires every workflow file to declare a top-level permissions block. rsr-antipattern.yml was the only caller missing one. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
hyperpolymath
enabled auto-merge (squash)
June 13, 2026 21:08
🔍 Hypatia Security ScanFindings: 74 issues detected
View findings[
{
"reason": "No test directory or test files found",
"type": "no_tests",
"file": "/home/runner/work/verisimdb-data/verisimdb-data",
"action": "flag",
"rule_module": "honest_completion",
"severity": "high",
"deduction": 20
},
{
"reason": "codeql.yml lists `language: javascript-typescript` but the repo has no source files in any CodeQL-scannable language. The analyze job will exit 'no source files' on every run. Switch the matrix to `actions` (which scans workflow files — every repo has those).",
"type": "codeql_language_matrix_mismatch",
"file": "codeql.yml",
"action": "switch_codeql_matrix_to_actions",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Issue in codeql.yml",
"type": "missing_timeout_minutes",
"file": "codeql.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dependabot-automerge.yml",
"type": "missing_timeout_minutes",
"file": "dependabot-automerge.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in dogfood-gate.yml",
"type": "missing_timeout_minutes",
"file": "dogfood-gate.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Issue in guix-nix-policy.yml",
"type": "missing_timeout_minutes",
"file": "guix-nix-policy.yml",
"action": "flag",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
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.
Summary
scripts/scan-all.sh: The expression/var$REPOS_DIRconcatenated a literal/varprefix with the variable, producing the literal string/var$REPOS_DIRwhenREPOS_DIRwas unset. This leaked intoprogram_pathin everyscans/*.json. Fixed with a proper guard: only useREPOS_DIRwhen it is non-empty and points to an existing directory..github/workflows/ingest.yml: Concurrentrepository_dispatchdeliveries were racing on thecommit+pushstep, causing one writer to lose. Added aconcurrencygroup withcancel-in-progress: falseto queue them instead of cancelling.Rebased onto current main (d184b7f). Supersedes #40.
Test plan
scripts/scan-all.sh— no more/var$REPOS_DIRexpression; proper guardingest.yml—concurrencyblock queues (not cancels) concurrent ingests🤖 Generated with Claude Code