Repository navigation
fix(ci): follow-up for CodeQL alerts #1 and #12 - #91
Conversation
- npm-publish: check out workflow_run.head_sha (the commit Release built) rather than the tag name; dispatch still falls back to the typed tag. - e2e mock server: cappath resolves and verifies containment in the capture dir (the sanitizer CodeQL recognizes) instead of relying on basename alone. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
No actionable comments were generated in the recent review.
|
|
Claude finished @krassx's task in 32s —— View job Review of PR #91: CodeQL follow-up for alerts #1 and #12I read the diff and the surrounding code: the No blocking findings. Checked
Minor (P3, non-blocking)
Summary
|
The e2e harness recreates scripts/__pycache__ on every local run; #90 committed one by accident and this PR removes it. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
Addressed the P3: added |
|
Claude finished @krassx's task in 16s —— View job Re-review of PR #91 after the new push (
|
Summary
Follow-up to #90, which cleared #2–#10. Two alerts remained or appeared after the rescan:
py/path-injection(scripts/e2e_flows.py):os.path.basenamewas safe but isn't a sanitizer CodeQL recognizes.cappathnow resolves the path withrealpathand raises if it escapes the capture dir.actions/untrusted-checkout(npm-publish.yml): the checkout now usesworkflow_run.head_sha(the exact commit the Release built) instead of the tag name, so a force-pushed tag can't redirect a job that runsnpm/build.mjswith OIDC publish rights. Manual dispatch has noworkflow_run, so it falls back to the typed tag. CodeQL may still flag the checkout-then-run shape; if so, dismiss as won't-fix (publish-from-release is the design; trigger requires write access + a successful tag-push Release).Not in this PR: #11 (
rust/cleartext-logging) is a false positive on a test assert message printing Mach-O UUIDs — dismiss in the UI as "used in tests".Test plan
actionlintclean onnpm-publish.ymlscripts/e2e_flows.py— ALL PASS;cappath("../x")raises,cappath("a.bin")resolves inside the dir🤖 Generated with Claude Code