Skip to content

Add CodeQL workflow - #165

Merged
Mike Krüger (mkrueger) merged 1 commit into
mainfrom
dev/mkrueger/add-codeql-workflow
Jul 7, 2026
Merged

Mike Krüger (mkrueger) merged 1 commit into
mainfrom
dev/mkrueger/add-codeql-workflow

Conversation

@mkrueger

@mkrueger Mike Krüger (mkrueger) commented Jul 6, 2026 •

Copy link
Copy Markdown
Collaborator

Adds an explicit CodeQL analysis workflow for C# that builds the solution with build-mode: manual.

This complements the repository's existing CodeQL default setup, which is what actually publishes code scanning results and satisfies the repository ruleset's CodeQL requirement on pull requests.

Note (transitional): while default setup is enabled, this workflow runs the analysis with upload: false because GitHub rejects SARIF uploads from advanced configurations when default setup is active. The workflow therefore validates that the CodeQL build/analyze path works, but does not itself publish code scanning results. If default setup is ever disabled, remove upload: false (and restore security-events: write) so this workflow uploads results directly.

Configuration details:

  • fetch-depth: 0 so Nerdbank.GitVersioning can compute version height.
  • cache-dependency-path matches the existing .NET workflows (global.json, Directory.Packages.props, **/*.csproj).
  • Least-privilege permissions: contents: read since no upload is performed.

Validation:

  • git diff --cached --check
  • dotnet build CosmosDBShell.sln --configuration Release

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated GitHub Actions workflow to run CodeQL code scanning for the C# codebase on pushes/PRs to main (plus a weekly schedule), so the repository’s CodeQL ruleset requirement is satisfied via an explicit, workflow-backed analysis.

Changes:

  • Introduces a CodeQL workflow that restores/builds CosmosDBShell.sln and uploads CodeQL results for C#.
  • Configures minimal required permissions for uploading security-events.
Comment thread .github/workflows/codeql.yml Resolved
Comment thread .github/workflows/codeql.yml Resolved
Copilot AI review requested due to automatic review settings July 6, 2026 13:27
@mkrueger
Mike Krüger (mkrueger) force-pushed the dev/mkrueger/add-codeql-workflow branch from cb5d122 to fcb8294 Compare July 6, 2026 13:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 6, 2026 13:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/codeql.yml Resolved
@mkrueger
Mike Krüger (mkrueger) force-pushed the dev/mkrueger/add-codeql-workflow branch from fcb8294 to 3bf15a2 Compare July 6, 2026 13:33
Copilot AI review requested due to automatic review settings July 6, 2026 13:35
@mkrueger
Mike Krüger (mkrueger) force-pushed the dev/mkrueger/add-codeql-workflow branch from 3bf15a2 to 4451288 Compare July 6, 2026 13:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/codeql.yml Resolved
Comment thread .github/workflows/codeql.yml Resolved
@github-code-quality

github-code-quality Bot commented Jul 6, 2026 •

Copy link
Copy Markdown

Code Coverage Overview

Languages: C#

C# / code-coverage/dotnet

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


Updated July 06, 2026 13:45 UTC
Code Coverage is in Public Preview. Learn more and provide us with your feedback.

@mkrueger
Mike Krüger (mkrueger) force-pushed the dev/mkrueger/add-codeql-workflow branch from 4451288 to 641d0fb Compare July 6, 2026 13:40
@mkrueger
Mike Krüger (mkrueger) merged commit 2ccd01d into main Jul 7, 2026
10 checks passed
@mkrueger
Mike Krüger (mkrueger) deleted the dev/mkrueger/add-codeql-workflow branch July 7, 2026 10:03
Mike Krüger (mkrueger) added a commit that referenced this pull request Jul 20, 2026
## What

Stamps the changelog release heading as `## 1.1.136-preview —
2026-07-20` and fills in the entries for PRs merged since
1.1.115-preview.

Supersedes #185 (same content, version heading bumped from `1.1.135` to
`1.1.136` to account for the extra git-height commit).

## Added entries

- **New features** — `ttl` and `conflict` commands for container
time-to-live and conflict-resolution policy
([#151](#151),
[#111](#111)).
- **Fixes** — MCP protocol-version rejection (e.g. Claude Code) and the
`ObjectDisposedException: The CancellationTokenSource has been disposed`
error on tool calls
([#150](#150)).
- **Build & pipeline** — CodeQL analysis workflow
([#165](#165)), Node 24
GitHub Actions updates
([#152](#152)), and a `union`
merge driver for `CHANGELOG.md`
([#172](#172)).

## Scope

- `CHANGELOG.md` only. No source or behavior changes. `version.json` is
unchanged — the patch is derived from git height by
Nerdbank.GitVersioning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants