Skip to content

ci: add trusted CodeQL scanning for organization controls - #19

Merged
openboa merged 1 commit into
mainfrom
codex/central-codeql-coverage
Sep 30, 2026
Merged

openboa merged 1 commit into
mainfrom
codex/central-codeql-coverage

Conversation

@openboa

@openboa openboa commented Sep 30, 2026

Copy link
Copy Markdown
Member

The central repository currently validates policy, secrets and isolated candidate tests, but does not run CodeQL on its own JavaScript controls or GitHub Actions. Extend the existing ci.yml with separate JavaScript/TypeScript and Actions analysis lanes. Both use pinned CodeQL actions, build-mode:none, inert exact-commit candidate source and the base-owned SARIF parser. PR analyses explicitly target refs/pull//head and the candidate SHA; main analyses use the actual push ref/SHA.

Keep the existing admission and isolated verification sequence intact. The only write permission remains security-events:write in the trusted scanner job. Preserve the exact Organization controls verification aggregate name, requiring both original verification and all CodeQL lanes to succeed; failures, cancellation, skips and missing results fail closed. Existing triggers and reusable Coffee controls stay unchanged.

Validation: npm test passed (30 passed; 1 Linux-only filename test skipped on macOS), all workflow actionlint checks, shell/Node syntax checks and git diff --check passed. Focused tests exercise 25 aggregate result combinations plus the scanner trust boundary and commit attribution. Independent read-only candidate review found no blocking issue.

Activation limit: pull_request_target uses the existing main workflow, so this PR's hosted CI validates the candidate through the old trusted boundary. The new scanner and aggregate require verification after an authorized merge; no candidate-owned privileged bootstrap or substitute success check was introduced.

@openboa
openboa marked this pull request as ready for review September 30, 2026 10:37
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@openboa
openboa merged commit 716e94e into main Sep 30, 2026
2 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.

1 participant