Skip to content

Commit dc021d4

Browse files
authored
Merge pull request #2115 from github/backport-v2.24.0-e8893c57a
Merge releases/v3 into releases/v2
2 parents 2f93e43 + f822fa3 commit dc021d4

File tree

87 files changed

+1290
-1136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+1290
-1136
lines changed

.github/workflows/__build-mode-none.yml

+85
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ Note that the only difference between `v2` and `v3` of the CodeQL Action is the
88

99
No user facing changes.
1010

11+
## 2.24.0 - 02 Feb 2024
12+
13+
- CodeQL Python analysis will no longer install dependencies on GitHub Enterprise Server, as is already the case for GitHub.com. See [release notes for 3.23.0](#3230---08-jan-2024) for more details. [#2106](https://github.com/github/codeql-action/pull/2106)
14+
1115
## 2.23.2 - 26 Jan 2024
1216

1317
- On Linux, the maximum possible value for the `--threads` option now respects the CPU count as specified in `cgroup` files to more accurately reflect the number of available cores when running in containers. [#2083](https://github.com/github/codeql-action/pull/2083)

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ We recommend using default setup to configure CodeQL analysis for your repositor
1616

1717
You can also configure advanced setup for a repository to find security vulnerabilities in your code using a highly customizable code scanning configuration. For more information, see "[Configuring advanced setup for code scanning](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/configuring-advanced-setup-for-code-scanning)" and "[Customizing your advanced setup for code scanning](https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning)."
1818

19+
## Supported versions of the CodeQL Action
20+
21+
The following versions of the CodeQL Action are currently supported:
22+
23+
- v3 (latest)
24+
- v2 (deprecated, support will end on December 5th, 2024)
25+
26+
The only difference between CodeQL Action v2 and v3 is the version of Node.js on which they run. CodeQL Action v3 runs on Node 20, while CodeQL Action v2 runs on Node 16.
27+
28+
To provide the best experience to customers using older versions of GitHub Enterprise Server, we will continue to release CodeQL Action v2 so that these customers can continue to run the latest version of CodeQL as long as their version of GitHub Enterprise Server is supported. For example CodeQL Action v3.22.11 was the first release of CodeQL Action v3 and is functionally identical to v2.22.11. This approach provides an easy way to track exactly which features are included in different versions by looking at the minor and patch version numbers.
29+
30+
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/).
31+
1932
## Troubleshooting
2033

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

analyze/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ inputs:
5252
# If changing this, make sure to update workflow.ts accordingly.
5353
default: ${{ github.workspace }}
5454
ref:
55-
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is not available in pull requests from forks."
55+
description: "The ref where results will be uploaded. If not provided, the Action will use the GITHUB_REF environment variable. If provided, the sha input must be provided as well. This input is ignored for pull requests from forks."
5656
required: false
5757
sha:
58-
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is not available in pull requests from forks."
58+
description: "The sha of the HEAD of the ref where results will be uploaded. If not provided, the Action will use the GITHUB_SHA environment variable. If provided, the ref input must be provided as well. This input is ignored for pull requests from forks."
5959
required: false
6060
category:
6161
description: String used by Code Scanning for matching the analyses

init/action.yml

+17
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ inputs:
1010
description: |
1111
A comma-separated value of the languages to be analysed e.g. python,javascript
1212
required: false
13+
build-mode:
14+
description: >-
15+
[Experimental, for internal testing only] The build mode that will be used to analyze the language.
16+
This input is only available in single-language analyses.
17+
18+
Available build modes will differ based on the language being analyzed. One of:
19+
20+
- none: The database will be created without building the source code.
21+
Available for all interpreted languages and some compiled languages.
22+
- autobuild: The database will be created by attempting to automatically build the source code.
23+
To use this build mode, ensure that your workflow calls the `autobuild` action
24+
between the `init` and `analyze` steps.
25+
Available for all compiled languages.
26+
- manual: The database will be created by building the source code using a manually specified
27+
build command. To use this build mode, specify manual build steps in your workflow
28+
between the `init` and `analyze` steps. Available for all compiled languages.
29+
required: false
1330
token:
1431
description: GitHub token to use for authenticating with this instance of GitHub. To download custom packs from multiple registries, use the registries input.
1532
default: ${{ github.token }}

lib/analyze.test.js

+2-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.js

+12-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.test.js

+2-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/codeql.test.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)