Skip to content

Commit 37ba75b

Browse files
committed
Add a compatibility table to the README
Specifies the versions of the action, CLI and GHES that are jointly compatible.
1 parent 1e21373 commit 37ba75b

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Note that the only difference between `v2` and `v3` of the CodeQL Action is the
66

77
## [UNRELEASED]
88

9-
No user facing changes.
9+
- Add a compatibility matrix of supported CodeQL Action, CodeQL CLI, and GitHub Enterprise Server versions to the [README.md](README.md). [#2273](https://github.com/github/codeql-action/pull/2273)
1010

1111
## 3.25.3 - 25 Apr 2024
1212

@@ -30,7 +30,7 @@ No user facing changes.
3030

3131
- The `setup-python-dependencies` input to the `init` Action
3232
- The `CODEQL_ACTION_DISABLE_PYTHON_DEPENDENCY_INSTALLATION` environment variable
33-
33+
3434
We recommend removing any references to these from your workflows. For more information, see the release notes for CodeQL Action v3.23.0 and v2.23.0.
3535
- Automatically overwrite an existing database if found on the filesystem. [#2229](https://github.com/github/codeql-action/pull/2229)
3636
- Bump the minimum CodeQL bundle version to 2.12.6. [#2232](https://github.com/github/codeql-action/pull/2232)

CONTRIBUTING.md

+4
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ We typically deprecate a version of CodeQL when the GitHub Enterprise Server (GH
8484
1. Notify users using the old version of CodeQL about the deprecation.
8585
- Update `CODEQL_NEXT_MINIMUM_VERSION`, `GHES_VERSION_MOST_RECENTLY_DEPRECATED`, and `GHES_MOST_RECENT_DEPRECATION_DATE` in `src/codeql.ts` to reflect the new minimum version of CodeQL and the GHES version that has just been deprecated.
8686
- Add a changelog note announcing the deprecation.
87+
- Update the CLI version references in [README.md](README.md):
88+
* Update the badge at the top of the file.
89+
* Update the supported versions section by adding a new row to the compatibility table.
8790
- Example PR: https://github.com/github/codeql-action/pull/1884
8891
1. Release the Action, or wait for the next scheduled release of the Action, then wait at least a week so users have time to see and act on the deprecation warning.
8992
1. Remove support for the old version of CodeQL.
@@ -96,6 +99,7 @@ We typically deprecate a version of CodeQL when the GitHub Enterprise Server (GH
9699
- Do the same for PR checks that aren't auto-generated.
97100
- Add a changelog note announcing the new minimum version of CodeQL that is now required.
98101
- Example PR: https://github.com/github/codeql-action/pull/1907
102+
1. If the version of CodeQL being deprecated is a major or minor version, then mark the corresponding [entry in the README.md](README.md#supported-versions-of-the-codeql-cli-and-github-enterprise-server) as deprecated as well (change `No` to `Yes`).
99103

100104
## Deprecating a CodeQL Action version (write access required)
101105

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
![Supports CodeQL CLI v2.12.6 - v2.17](https://img.shields.io/badge/Supports_CodeQL_CLI-v2.12.6_--_v2.17-blue)
3+
14
# CodeQL Action
25

36
This action runs GitHub's industry-leading semantic code analysis engine, [CodeQL](https://codeql.github.com/), against a repository's source code to find security vulnerabilities. It then automatically uploads the results to GitHub so they can be displayed on pull requests and in the repository's security tab. CodeQL runs an extensible set of [queries](https://github.com/github/codeql), which have been developed by the community and the [GitHub Security Lab](https://securitylab.github.com/) to find common vulnerabilities in your code.
@@ -33,6 +36,19 @@ To provide the best experience to customers using older versions of GitHub Enter
3336

3437
For more information, see "[Code scanning: deprecation of CodeQL Action v2](https://github.blog/changelog/2024-01-12-code-scanning-deprecation-of-codeql-action-v2/)."
3538

39+
## Supported versions of the CodeQL CLI and GitHub Enterprise Server
40+
41+
We typically release new minor versions of the CodeQL Action and CLI when a new minor version of GitHub Enterprise Server (GHES) is released. When a version of GHES is deprecated, the corresponding CodeQL Aciton and CLI releases are deprecated as well.
42+
43+
| CodeQL Action Versions | CodeQL CLI Versions | GHES Versions | Deprecated? |
44+
|----------------|------------|-----|--|
45+
| `v3.25`, `v2.25` | ![Supports CodeQL CLI v2.12.6 - v2.17](https://img.shields.io/badge/Supports_CodeQL_CLI-v2.12.6_--_v2.17-blue) | `v3.9` - `v3.12` | No |
46+
| `v3.23`, `v2.23`, `v3.24`, `v2.24` | ![Supports CodeQL CLI v2.11.6 - v2.16](https://img.shields.io/badge/Supports_CodeQL_CLI-v2.11.6_--_v2.16-blue) | `v3.8` - `v3.11` | No |
47+
| `v3.22`, `v2.22` | ![Supports CodeQL CLI v2.10.5 - v2.15](https://img.shields.io/badge/Supports_CodeQL_CLI-v2.10.5_--_v2.15-blue) | `v3.7` - `v3.10` | No |
48+
| `v2.21` | ![Supports CodeQL CLI v2.9.4 - v2.14](https://img.shields.io/badge/Supports_CodeQL_CLI-v2.9.4_--_v2.14-blue) | `v3.6` - `v3.9` | No |
49+
50+
See the full list of GHES release and deprecation dates at [GitHub Enterprise Server releases](https://docs.github.com/en/enterprise-server/admin/all-releases#releases-of-github-enterprise-server).
51+
3652
## Troubleshooting
3753

3854
Read about [troubleshooting code scanning](https://docs.github.com/en/code-security/code-scanning/troubleshooting-code-scanning).

0 commit comments

Comments
 (0)