Skip to content

ci(codeql): align analysis action version - #6524

Closed
apurvvkumaria wants to merge 1 commit into
mainfrom
codex/fix-codeql-action-version
Closed

ci(codeql): align analysis action version#6524
apurvvkumaria wants to merge 1 commit into
mainfrom
codex/fix-codeql-action-version

Conversation

@apurvvkumaria

@apurvvkumaria apurvvkumaria commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Align the CodeQL analyze action with the v4.37.0 init and upload-sarif actions already on main. The mixed action versions currently fail before source analysis because v4.36.2 cannot read configuration generated by v4.37.0.

Changes

Type of Change

  • Code change (feature, bug fix, or refactor)
  • Code change with doc updates
  • Doc only (prose changes, no code sample modifications)
  • Doc only (includes code sample changes)

Quality Gates

  • Tests added or updated for changed behavior
  • Existing tests cover changed behavior — justification:
  • Tests not applicable — justification: This is a one-line immutable action-SHA alignment; the exact-head Code Scanning workflow is the behavioral validation.
  • Docs updated for user-facing behavior changes
  • Docs not applicable — justification: No user-facing command, configuration, output, or support contract changes.
  • Sensitive paths changed (security, policy, credentials, preflight, onboarding, inference, runner, sandbox, or messaging)
  • Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: All CodeQL components remain SHA-pinned to the same reviewed release; permissions, queries, languages, and trusted workflow boundaries are unchanged.
  • Non-success, skipped, or missing CI check accepted by maintainer — check name, approval link, and follow-up issue:

Verification

  • PR description includes the DCO sign-off declaration and every commit appears as Verified in GitHub
  • Normal pre-commit, commit-msg, and pre-push hooks passed, or npm run check:diff passed when hooks were skipped or unavailable
  • Targeted behavior tests pass for the current change set, or tests are marked not applicable above — command/result or justification: Workflow YAML validation and secret scanning passed; exact workflow execution is delegated to CI.
  • Applicable broad gate passed — npm test for broad runtime/test-harness changes; npm run check for repo-wide validation/coverage changes — command/result: Not run; this does not change runtime or test-harness code.
  • Quality Gates section completed with required justifications or waivers
  • No secrets, API keys, or credentials committed
  • npm run docs builds without warnings (doc changes only)
  • Doc pages follow the style guide (doc changes only)
  • New doc pages include SPDX header and frontmatter (new pages only)

Regression evidence: main run 28984673218 and PR #6337 run 28984771856 both fail before analysis with the same v4.37.0/v4.36.2 configuration-version mismatch.


Signed-off-by: Apurv Kumaria akumaria@nvidia.com

Summary by CodeRabbit

  • Chores
    • Updated the code scanning workflow to a newer pinned version of the analysis action for improved reliability and maintenance.
    • No changes were made to the scanning steps, inputs, or report upload behavior.

Keep all CodeQL Action components on one release.

This lets analyze read the configuration generated by init.

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: Carlos Villela <cvillela@nvidia.com>
Signed-off-by: Apurv Kumaria <akumaria@nvidia.com>
@apurvvkumaria apurvvkumaria added bug-fix PR fixes a bug or regression area: project-management Taxonomy, triage, workflow, roadmap, or project process v0.0.79 labels Jul 9, 2026
@apurvvkumaria apurvvkumaria self-assigned this Jul 9, 2026
@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: bac76a2e-55e5-44c1-bb59-7b949ac51b87

📥 Commits

Reviewing files that changed from the base of the PR and between a226b08 and 35a8b14.

📒 Files selected for processing (1)
  • .github/workflows/code-scanning.yaml

📝 Walkthrough

Walkthrough

This change updates the pinned commit SHA for the github/codeql-action/analyze action used in the CodeQL analysis step of the code-scanning GitHub Actions workflow. No other workflow logic or steps were modified.

Changes

CI Workflow Update

Layer / File(s) Summary
Update CodeQL action pin
.github/workflows/code-scanning.yaml
The "Perform CodeQL analysis" step now references a new pinned commit SHA for github/codeql-action/analyze@v4.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the main change: aligning the CodeQL analysis action version in the CI workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-codeql-action-version

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

github-code-quality Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: TypeScript

TypeScript / code-coverage/plugin

The overall coverage remains at 96%, unchanged from the main branch.

TypeScript / code-coverage/cli

The overall coverage in the codex/fix-codeql-act... branch remains at 76%, unchanged from the main branch.

Show a code coverage summary of the most impacted files.
File main a226b08 codex/fix-codeql-act... 35a8b14 +/-
src/lib/sandbox...rsion-scheme.ts 100% 73% -27%
src/lib/agent/t...-enforcement.ts 100% 75% -25%
src/lib/onboard/config-sync.ts 46% 31% -15%
src/lib/agent/b...availability.ts 74% 63% -11%
src/lib/agent/t...ersion-drift.ts 96% 88% -8%
src/lib/runner.ts 80% 73% -7%
src/lib/security/redact.ts 97% 95% -2%
src/lib/agent/base-image.ts 84% 82% -2%
src/lib/agent/onboard.ts 70% 71% +1%

Updated July 09, 2026 00:47 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

E2E Advisor Recommendation

Required E2E: None
Optional E2E: None

Workflow run

Full advisor summary

E2E Recommendation Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E

  • None. No E2E is needed because this PR only changes a GitHub Actions CodeQL analysis action pin in the code-scanning workflow. It cannot affect product runtime paths or real user flows covered by NemoClaw E2E tests.

Optional E2E

  • None.

New E2E recommendations

  • None.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

E2E Target Recommendation

Required E2E targets: None
Optional E2E targets: None

Workflow run

Full E2E target advisor summary

E2E Target Advisor

Base: origin/main
Head: HEAD
Confidence: high

Required E2E targets

  • None. Only the Security / Code Scanning workflow changed; this is outside the NemoClaw E2E target workflow, registry, fixtures, live tests, and target-relevant runtime paths, so no E2E target dispatch is required.

Optional E2E targets

  • None.

Relevant changed files

  • None.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor (Nemotron Ultra) — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: No advisor follow-up required beyond maintainer review.
Open items: 0 required · 0 warnings · 0 suggestions · 0 test follow-ups
Since last review: 0 prior items resolved · 0 still apply · 0 new items found

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

PR Review Advisor — No blocking findings

Merge posture: No blocking advisor findings
Primary next action: Add or justify PRA-T1 and any related test follow-ups.
Open items: 0 required · 0 warnings · 0 suggestions · 4 test follow-ups
Since last review: 0 prior items resolved · 0 still apply · 0 new items found

Action checklist

  • PRA-T1 Add or justify test follow-up: Acceptance clause
  • PRA-T2 Add or justify test follow-up: Acceptance clause
  • PRA-T3 Add or justify test follow-up: Acceptance clause
  • PRA-T4 Add or justify test follow-up: Acceptance clause
Test follow-ups to resolve or justify

If these cover changed behavior, prefer adding them in this PR; otherwise state why existing coverage is enough or link the follow-up.

  • PRA-T1 Acceptance clause — The mixed action versions currently fail before source analysis because v4.36.2 cannot read configuration generated by v4.37.0. — add test evidence or identify existing coverage. The diff verifies the local mixed-SHA condition is removed. The stated external failure mode depends on workflow run evidence outside the code diff and was not treated as authoritative review evidence.
  • PRA-T2 Acceptance clause — Preserve the original Dependabot/Carlos Villela upgrade credit in the signed commit trailers. — add test evidence or identify existing coverage. This is commit metadata rather than changed-file content; the reviewed diff does not contain trailer information to verify this clause.
  • PRA-T3 Acceptance clause — Restore Code Scanning for fix(runtime): route local Ollama through proxy #6337, test(openclaw): cover TUI idle timeout regression #6296, and every PR based on current `main` without changing scan scope or permissions. — add test evidence or identify existing coverage. The diff leaves triggers, permissions, languages, queries, and SARIF upload configuration unchanged while aligning the analyze SHA. Actual restoration for external runs is outside this code-review surface.
  • PRA-T4 Acceptance clause — Sensitive-path review completed or maintainer-approved waiver recorded — reviewer/approval link/justification: All CodeQL components remain SHA-pinned to the same reviewed release; permissions, queries, languages, and trusted workflow boundaries are unchanged. — add test evidence or identify existing coverage. The code diff confirms CodeQL components remain SHA-pinned and that permissions, queries, languages, and triggers are unchanged. The process claim about review completion or waiver is not independently verified from code.

Workflow run details

This is an automated, non-binding review; it still expects maintainers and agents to respond to each required or warning item. Treat suggestions as current-PR improvements when they touch changed code; defer only with maintainer rationale or a linked follow-up. A human maintainer must make the final merge decision.

cv added a commit that referenced this pull request Jul 9, 2026
<!-- markdownlint-disable MD041 -->
## Summary
<!-- 1-3 sentences: what this PR does and why. -->

Repair the mixed CodeQL Action versions that broke the `Security / Code
Scanning` workflow, then prevent the same failure from recurring by
grouping CodeQL Dependabot updates and enforcing one shared immutable
revision in CI. This is a prevention-complete superset of the
repair-only #6524, which appeared while this change was in progress.

## Changes
<!-- Bullet list of key changes. -->

- Align `github/codeql-action/analyze` with the v4.37.0 revision already
used by `init` and `upload-sarif`.
- Group `github/codeql-action/*` dependencies so Dependabot updates all
CodeQL components atomically.
- Add an integration contract test that requires all three CodeQL
components, full SHA pins, one shared revision, and the Dependabot
group.

## Type of Change

- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates
<!-- Check exactly one tests line and one docs line. Check other lines
when applicable. Add every requested justification or approval
reference. -->
- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: This changes internal CI
dependency management only; installation, runtime behavior, commands,
configuration, and user-facing policy schemas are unchanged.
- [x] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [x] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification: The focused workflow
review confirmed that triggers, permissions, languages, queries, and
SARIF behavior are unchanged; only the reviewed CodeQL SHA is aligned,
with a regression contract added.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification
<!-- Check each applicable item only when supported by the requested
evidence. Run targeted tests once per relevant change set and rerun
after later edits or hook autofixes that can affect the tested behavior.
Do not rerun hook-covered checks. -->
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run check:diff` passed when hooks were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — command/result or justification: `npx
vitest run --project integration test/code-scanning-workflow.test.ts`
passed (2 tests).
- [ ] Applicable broad gate passed — `npm test` for broad
runtime/test-harness changes; `npm run check` for repo-wide
validation/coverage changes — command/result: Not run; this is a focused
workflow/configuration contract change covered by the targeted test and
normal hooks.
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
@apurvvkumaria

Copy link
Copy Markdown
Collaborator Author

Closing as superseded by #6526, which merged the same CodeQL action-version repair and added a regression guard. Thank you to Carlos Villela and Dependabot for the original diagnosis and update.

Hadar301 pushed a commit to Hadar301/NemoClaw-OpenShift that referenced this pull request Jul 12, 2026
<!-- markdownlint-disable MD041 -->
## Summary
<!-- 1-3 sentences: what this PR does and why. -->

Repair the mixed CodeQL Action versions that broke the `Security / Code
Scanning` workflow, then prevent the same failure from recurring by
grouping CodeQL Dependabot updates and enforcing one shared immutable
revision in CI. This is a prevention-complete superset of the
repair-only NVIDIA#6524, which appeared while this change was in progress.

## Changes
<!-- Bullet list of key changes. -->

- Align `github/codeql-action/analyze` with the v4.37.0 revision already
used by `init` and `upload-sarif`.
- Group `github/codeql-action/*` dependencies so Dependabot updates all
CodeQL components atomically.
- Add an integration contract test that requires all three CodeQL
components, full SHA pins, one shared revision, and the Dependabot
group.

## Type of Change

- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)

## Quality Gates
<!-- Check exactly one tests line and one docs line. Check other lines
when applicable. Add every requested justification or approval
reference. -->
- [x] Tests added or updated for changed behavior
- [ ] Existing tests cover changed behavior — justification:
- [ ] Tests not applicable — justification:
- [ ] Docs updated for user-facing behavior changes
- [x] Docs not applicable — justification: This changes internal CI
dependency management only; installation, runtime behavior, commands,
configuration, and user-facing policy schemas are unchanged.
- [x] Sensitive paths changed (security, policy, credentials, preflight,
onboarding, inference, runner, sandbox, or messaging)
- [x] Sensitive-path review completed or maintainer-approved waiver
recorded — reviewer/approval link/justification: The focused workflow
review confirmed that triggers, permissions, languages, queries, and
SARIF behavior are unchanged; only the reviewed CodeQL SHA is aligned,
with a regression contract added.
- [ ] Non-success, skipped, or missing CI check accepted by maintainer —
check name, approval link, and follow-up issue:

## Verification
<!-- Check each applicable item only when supported by the requested
evidence. Run targeted tests once per relevant change set and rerun
after later edits or hook autofixes that can affect the tested behavior.
Do not rerun hook-covered checks. -->
- [x] PR description includes the DCO sign-off declaration and every
commit appears as `Verified` in GitHub
- [x] Normal `pre-commit`, `commit-msg`, and `pre-push` hooks passed, or
`npm run check:diff` passed when hooks were skipped or unavailable
- [x] Targeted behavior tests pass for the current change set, or tests
are marked not applicable above — command/result or justification: `npx
vitest run --project integration test/code-scanning-workflow.test.ts`
passed (2 tests).
- [ ] Applicable broad gate passed — `npm test` for broad
runtime/test-harness changes; `npm run check` for repo-wide
validation/coverage changes — command/result: Not run; this is a focused
workflow/configuration contract change covered by the targeted test and
normal hooks.
- [x] Quality Gates section completed with required justifications or
waivers
- [x] No secrets, API keys, or credentials committed
- [ ] `npm run docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)

---
<!-- DCO sign-off is required in this PR description, and every commit
must appear as Verified in GitHub. Run: git config user.name && git
config user.email -->
Signed-off-by: Carlos Villela <cvillela@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: project-management Taxonomy, triage, workflow, roadmap, or project process bug-fix PR fixes a bug or regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant