Skip to content

CI: don't fail when CodeQL code scanning is disabled#170

Merged
PrzemyslawKlys merged 1 commit intomasterfrom
feature/codeql-nonfatal
Feb 9, 2026
Merged

CI: don't fail when CodeQL code scanning is disabled#170
PrzemyslawKlys merged 1 commit intomasterfrom
feature/codeql-nonfatal

Conversation

@PrzemyslawKlys
Copy link
Member

CodeQL analysis jobs can fail on repos where code scanning isn't enabled (common for private repos without Code Security). Mark the analyze step as non-fatal so CI remains usable.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1421589e6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

uses: github/codeql-action/analyze@v3
# Repo settings can disable code scanning (e.g., private repos without Code Security enabled).
# Keep CI green while still attempting analysis when available.
continue-on-error: true

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Keep CodeQL analyze step blocking on real failures

Setting continue-on-error: true here makes the CodeQL job pass even when analysis genuinely fails (for example extractor/query execution/upload errors), so branch protection can report a green security check while no scan results were produced. This change was meant to tolerate the specific "code scanning disabled" case, but it currently suppresses all analyze failures in enabled repositories as well, which weakens CI/security signal reliability.

Useful? React with 👍 / 👎.

@PrzemyslawKlys PrzemyslawKlys merged commit 4d15617 into master Feb 9, 2026
9 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the feature/codeql-nonfatal branch February 9, 2026 10:34
@intelligencex-review
Copy link

IntelligenceX Review

Reviewing PR #170: CI: don't fail when CodeQL code scanning is disabled
Reviewed commit: e142158

Merge blockers: items in Todo List ✅ and Critical Issues ⚠️ sections (if present). Other Issues 🧯 are suggestions.

Workflow-only changes detected (1 workflow file). Head SHA: e142158. Review skipped to avoid self-modifying workflow runs. Set allowWorkflowChanges or REVIEW_ALLOW_WORKFLOW_CHANGES=true to override.

Model & Usage 🤖

  • Model: gpt-5.3-codex
  • Length: medium
  • Mode: inline
  • Reasoning: not configured
  • Usage: unavailable

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