fix(ci): replace default CodeQL with custom workflow to unblock CI#22397
Merged
fix(ci): replace default CodeQL with custom workflow to unblock CI#22397
Conversation
The default CodeQL setup runs all 45 Python security queries against the entire codebase. Two queries (CleartextLogging, PolynomialReDoS) produce result sets > 2 GiB, causing 49+ minute runs that fail and block CI. - Add custom workflow with 30-minute timeout and concurrency limits - Exclude py/clear-text-logging-sensitive-data (CWE-312) - Exclude py/polynomial-redos (CWE-730) - Skip scanning tests/, docs/, and UI build output NOTE: The Default Setup must be disabled in repo Settings > Code security before merging, otherwise both will run simultaneously. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile SummaryAdds a custom CodeQL workflow (
Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| .github/codeql/codeql-config.yml | New CodeQL config that excludes two problematic Python queries (CWE-312, CWE-730) that produce >2 GiB result sets, and ignores tests/docs/markdown/UI output paths. Syntax is correct. |
| .github/workflows/codeql.yml | New CodeQL workflow with 30-min timeout, concurrency group with cancel-in-progress, matrix strategy for 4 languages. Well-structured but concurrency group may cancel in-progress scans on pushes to main. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Push to main / PR to main / Weekly schedule] --> B[Concurrency check]
B -->|Cancel previous run| C[Matrix: 4 language jobs]
C --> D1[actions - build-mode: none]
C --> D2[javascript-typescript - build-mode: none]
C --> D3[python - build-mode: none]
C --> D4[ruby - build-mode: none]
D1 --> E1[Checkout → Init CodeQL → Analyze]
D2 --> E2[Checkout → Init CodeQL → Analyze]
D3 --> E3[Checkout → Init CodeQL → Analyze]
D4 --> E4[Checkout → Init CodeQL → Analyze]
E1 --> F[Upload SARIF results]
E2 --> F
E3 --> F
E4 --> F
subgraph Config [codeql-config.yml]
G[Exclude py/clear-text-logging-sensitive-data]
H[Exclude py/polynomial-redos]
I[Ignore: tests, docs, *.md, UI output]
end
E3 -.->|applies to| Config
Last reviewed commit: 53f3123
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
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
py/clear-text-logging-sensitive-data(CWE-312) — 38m51spy/polynomial-redos(CWE-730) — 45m24scancel-in-progress: trueto prevent piling up.github/codeql/codeql-config.ymltests/,docs/,**/*.md, and UI build outputactions,javascript-typescript,python,rubyBefore merging
Test plan
🤖 Generated with Claude Code