Skip to content

fix(ci): align CodeQL extraction with the candidate workspace - #20

Merged
SonSangjoon merged 1 commit into
mainfrom
codex/central-codeql-source-scope
Sep 30, 2026
Merged

SonSangjoon merged 1 commit into
mainfrom
codex/central-codeql-source-scope

Conversation

@openboa

@openboa openboa commented Sep 30, 2026

Copy link
Copy Markdown
Member

The first central CodeQL run failed its Actions lane because database init used candidate/ as source-root while analyze invoked extraction from GITHUB_WORKSPACE. JavaScript also indexed both the control/ and candidate/ checkouts. Align source-root, extractor working directory and SARIF checkout_path by checking out the candidate at the workspace root.

First check out the approved base controls, preserve only the standalone authority guard and SARIF checker in a canonical temporary directory outside the analysis tree, then cleanly check out the exact candidate at the root. Execute only those saved base-owned validators. Both CodeQL languages, explicit ref/SHA attribution, permissions, original verification and the fail-closed aggregate stay intact.

Validation: npm test passes (31 passed, one Linux-only filename test skipped on macOS); actionlint, syntax and diff checks pass. New executable regression coverage proves base-only files are removed, candidate source remains at the root, saved helpers remain outside it, candidate helper replacements never execute, temporary-directory aliases are resolved, and saved guards reject symlinks/findings. Independent read-only review found no concrete new bypass/regression.

Verification limit: this draft's pull_request_target execution uses the still-broken trusted base workflow, so it cannot exercise this corrected layout. Actual extractor inclusion/exclusion and SARIF path mapping must be verified separately before claiming the scanner is repaired; no privileged candidate-workflow bootstrap or check bypass is introduced.

@SonSangjoon
SonSangjoon marked this pull request as ready for review September 30, 2026 11:31
@SonSangjoon
SonSangjoon self-requested a review as a code owner September 30, 2026 11:31
@SonSangjoon
SonSangjoon merged commit 700dacb into main Sep 30, 2026
3 of 5 checks passed
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