Skip to content

Modernize CodeQL workflow - #228

Merged
williammartin merged 1 commit into
trunkfrom
wm-codeql
May 20, 2026
Merged

williammartin merged 1 commit into
trunkfrom
wm-codeql

Conversation

@williammartin

@williammartin williammartin commented May 20, 2026 •

Copy link
Copy Markdown
Member

The existing codeql-analysis.yml is out of date. This PR brings it in line with the workflow shape used in other cli/* repos.

Changes:

  • Bump github/codeql-action/init and /analyze from @v2 (deprecated) to @v4.
  • Add actions language to the scan matrix — this repo has three workflows worth scanning.
  • Add an explicit actions/setup-go step using go-version-file: go.mod, instead of relying on CodeQL's Go autobuild.
  • Add category: to analyze (required for multi-language uploads).
  • Add fail-fast: false and paths-ignore for docs-only PRs.
  • Keep actions/checkout@v4 and actions/setup-go@v5 to match the other workflows in this repo (a coordinated bump is out of scope here).
  • Keep the filename codeql-analysis.yml so any required-check rules don't get orphaned.

Co-authored-by: Copilot [email protected]

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@williammartin
williammartin marked this pull request as ready for review May 20, 2026 14:47
@williammartin
williammartin requested a review from a team as a code owner May 20, 2026 14:47
@williammartin
williammartin requested review from BagToad and Copilot and removed request for a team May 20, 2026 14:47
- Bump codeql-action from v2 (deprecated) to v4
- Add 'actions' language to the scan matrix
- Add explicit setup-go step (drops reliance on autobuild)
- Add category, fail-fast: false, and paths-ignore for docs

Co-authored-by: Copilot <[email protected]>

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

Updates the repository’s CodeQL workflow to a more current configuration, including moving off deprecated CodeQL Action versions and expanding analysis coverage to GitHub Actions workflows.

Changes:

  • Bumped github/codeql-action/init and github/codeql-action/analyze from @v2 to @v4.
  • Added a language matrix to scan both go and actions, including a Go toolchain setup step for the Go run.
  • Added fail-fast: false, PR paths-ignore for **/*.md, and category: for multi-language SARIF uploads.
Show a summary per file
File Description
.github/workflows/codeql-analysis.yml Modernizes CodeQL scanning (v4 actions), adds go+actions matrix, and updates workflow behavior/settings for multi-language analysis.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Comment thread .github/workflows/codeql-analysis.yml Resolved
@williammartin
williammartin requested a review from babakks May 20, 2026 15:13
@williammartin
williammartin merged commit 7e39e0f into trunk May 20, 2026
12 checks passed
@williammartin
williammartin deleted the wm-codeql branch May 20, 2026 15:33
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.

5 participants