Skip to content

Commit

Permalink
Update CodeQL CLI from 2.11.2 to 2.12.4 (#309)
Browse files Browse the repository at this point in the history
## Description

Update CodeQL CLI from 2.11.2 to 2.12.4

Changes are tracked in this file:
https://github.com/github/codeql-cli-binaries/blob/main/CHANGELOG.md

This change upgrades the CodeQL CLI used in Project Mu repos from
[2.11.2 (2022-10-25)](https://github.com/github/codeql-cli-binaries/blob/main/CHANGELOG.md#release-2112-2022-10-25)
to
[2.12.4 (2023-03-09)](https://github.com/github/codeql-cli-binaries/blob/main/CHANGELOG.md#release-2124-2023-03-09)

Below are some important changes selected from the new changes that
are notable for our usage of the CodeQL CLI.

---

**Release 2.12.4 (2023-03-09)**

codeql pack install now uses a new algorithm to determine which versions of the pack's dependencies to use, based on the PubGrub algorithm. The new algorithm is able to find a solution for many cases that the previous algorithm would fail to solve. When the new algorithm is unable to find a valid solution, it generates a detailed error message explaining why there is no valid solution.

**Release 2.12.2 (2023-02-07)**

Fixed a QL evaluator bug introduced in release 2.12.1 which could in certain rare cases lead to wrong analysis results.

**Release 2.11.5 (2022-12-07)**

Fixed a bug that could cause log summary generation to fail in vscode.

**Release 2.11.4 (2022-11-24)**

CodeQL 2.11.1 to 2.11.3 contained a bug in indirect build tracing on Windows when using codeql database init with the --trace-process-level flag. In these versions, when --trace-process-level was set to a value greater than zero, (or left at the default value of 1), CodeQL attempted to inject its build tracer at a higher level in the process tree than the requested process level. This could lead to errors of the form "No source code found" or "Process tree ended before reaching required level". From 2.11.4 onwards, the CodeQL build tracer is injected at the requested process level.

---

- [ ] Impacts functionality?
  - **Functionality** - Does the change ultimately impact how firmware functions?
  - Examples: Add a new library, publish a new PPI, update an algorithm, ...
- [ ] Impacts security?
  - **Security** - Does the change have a direct security impact on an application,
    flow, or firmware?
  - Examples: Crypto algorithm change, buffer overflow fix, parameter
    validation improvement, ...
- [ ] Breaking change?
  - **Breaking change** - Will anyone consuming this change experience a break
    in build or boot behavior?
  - Examples: Add a new library class, move a module to a different repo, call
    a function in a new library class in a pre-existing module, ...
- [ ] Includes tests?
  - **Tests** - Does the change include any explicit test code?
  - Examples: Unit tests, integration tests, robot tests, ...
- [ ] Includes documentation?
  - **Documentation** - Does the change contain explicit documentation additions
    outside direct code modifications (and comments)?
  - Examples: Update readme file, add feature readme file, link to documentation
    on an a separate Web page, ...

## How This Was Tested

CodeQL PR gates (and local builds of several packages with `--codeql` flag).

## Integration Instructions

The new CLI will automatically be picked up if the Mu CodeQL CLI plugin is used.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
  • Loading branch information
makubacki authored and kenlautner committed Oct 19, 2023
1 parent 8e3a3d3 commit 636a14c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pytool/Plugin/CodeQL/codeqlcli_ext_dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"scope": "codeql-ext-dep",
"type": "web",
"name": "codeql_cli",
"source": "https://github.com/github/codeql-cli-binaries/releases/download/v2.11.2/codeql.zip",
"version": "2.11.2",
"sha256": "3ffa99df6752cda7ada25828df3f165df03b6ee4ca9c68405a38c3b54129ce40",
"source": "https://github.com/github/codeql-cli-binaries/releases/download/v2.12.4/codeql.zip",
"version": "2.12.4",
"sha256": "f682f1155d627ad97f10b1bcad97f682011986717bd3823e9cf831ed83ac96e7",
"compression_type": "zip",
"internal_path": "/codeql/",
"flags": ["set_shell_var", ],
Expand Down
6 changes: 3 additions & 3 deletions .pytool/Plugin/CodeQL/codeqlcli_linux_ext_dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"scope": "codeql-linux-ext-dep",
"type": "web",
"name": "codeql_linux_cli",
"source": "https://github.com/github/codeql-cli-binaries/releases/download/v2.11.2/codeql-linux64.zip",
"version": "2.11.2",
"sha256": "a9b735d7ef9cc4a8cdf3a67b7018fe741078605cec273e1514a497353e31d2b8",
"source": "https://github.com/github/codeql-cli-binaries/releases/download/v2.14.5/codeql-linux64.zip",
"version": "2.14.5",
"sha256": "72aa5d748ff9ab57cfd86045560683bdc4897e0fe6d9f9a2786d9394674ae733",
"compression_type": "zip",
"internal_path": "/codeql/",
"flags": ["set_shell_var", ],
Expand Down
6 changes: 3 additions & 3 deletions .pytool/Plugin/CodeQL/codeqlcli_windows_ext_dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"scope": "codeql-windows-ext-dep",
"type": "web",
"name": "codeql_windows_cli",
"source": "https://github.com/github/codeql-cli-binaries/releases/download/v2.11.2/codeql-win64.zip",
"version": "2.11.2",
"sha256": "aa886ffdf7ef5c0471ed5eeee115a5114a0f292da81ad15025d4889b1ff0fd41",
"source": "https://github.com/github/codeql-cli-binaries/releases/download/v2.14.5/codeql-win64.zip",
"version": "2.14.5",
"sha256": "861fcb38365cc311efee0c3a28c77494e93c69a969885b72e53173ad473f61aa",
"compression_type": "zip",
"internal_path": "/codeql/",
"flags": ["set_shell_var", ],
Expand Down

0 comments on commit 636a14c

Please sign in to comment.