Skip to content

Commit 2fe1a3d

Browse files
authored
Merge pull request #2480 from github/backport-v2.26.7-8214744c5
Merge releases/v3 into releases/v2
2 parents be8b74c + 8c041af commit 2fe1a3d

File tree

420 files changed

+20719
-1408
lines changed

Some content is hidden

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

420 files changed

+20719
-1408
lines changed

.eslintignore

-4
This file was deleted.

.github/actions/prepare-test/action.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@ runs:
3232
run: |
3333
set -e # Fail this Action if `gh release list` fails.
3434
35+
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then
36+
extension="tar.zst"
37+
else
38+
extension="tar.gz"
39+
fi
40+
3541
if [[ ${{ inputs.use-all-platform-bundle }} == "true" ]]; then
36-
artifact_name="codeql-bundle.tar.gz"
42+
artifact_name="codeql-bundle.$extension"
3743
elif [[ "$RUNNER_OS" == "Linux" ]]; then
38-
artifact_name="codeql-bundle-linux64.tar.gz"
44+
artifact_name="codeql-bundle-linux64.$extension"
3945
elif [[ "$RUNNER_OS" == "macOS" ]]; then
40-
artifact_name="codeql-bundle-osx64.tar.gz"
46+
artifact_name="codeql-bundle-osx64.$extension"
4147
elif [[ "$RUNNER_OS" == "Windows" ]]; then
42-
artifact_name="codeql-bundle-win64.tar.gz"
48+
artifact_name="codeql-bundle-win64.$extension"
4349
else
4450
echo "::error::Unrecognized OS $RUNNER_OS"
4551
exit 1

.github/actions/setup-swift/action.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ runs:
1111
id: get_swift_version
1212
if: runner.os == 'Linux'
1313
shell: bash
14-
env:
14+
env:
1515
CODEQL_PATH: ${{ inputs.codeql-path }}
1616
run: |
1717
SWIFT_EXTRACTOR_DIR="$("$CODEQL_PATH" resolve languages --format json | jq -r '.swift[0]')"
1818
if [ $SWIFT_EXTRACTOR_DIR = "null" ]; then
1919
VERSION="null"
2020
else
2121
VERSION="$("$SWIFT_EXTRACTOR_DIR/tools/linux64/extractor" --version | awk '/version/ { print $3 }')"
22-
# Specify 5.x.0, otherwise setup Action will default to latest minor version.
22+
# Specify 5.x.0, otherwise setup Action will default to latest minor version.
2323
if [ $VERSION = "5.7" ]; then
2424
VERSION="5.7.0"
2525
elif [ $VERSION = "5.8" ]; then
@@ -29,11 +29,11 @@ runs:
2929
# setup-swift does not yet support v5.9.1 Remove this when it does.
3030
elif [ $VERSION = "5.9.1" ]; then
3131
VERSION="5.9.0"
32-
fi
32+
fi
3333
fi
3434
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
3535
36-
- uses: redsun82/setup-swift@b2b6f77ab14f6a9b136b520dc53ec8eca27d2b99 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
36+
- uses: redsun82/setup-swift@362f49f31da2f5f4f851657046bdd1290d03edc8 # Please update the corresponding SHA in the CLI's CodeQL Action Integration Test.
3737
if: runner.os == 'Linux' && steps.get_swift_version.outputs.version != 'null'
3838
with:
3939
swift-version: "${{ steps.get_swift_version.outputs.version }}"

.github/workflows/__go-tracing-autobuilder.yml

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

.github/workflows/__go-tracing-custom-build-steps.yml

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

.github/workflows/__go-tracing-legacy-workflow.yml

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

.github/workflows/__job-run-uuid-sarif.yml

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

.github/workflows/__test-local-codeql.yml

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

.github/workflows/pr-checks.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@ jobs:
2424
uses: actions/checkout@v4
2525

2626
- name: Lint
27-
run: npm run-script lint
27+
id: lint
28+
run: npm run-script lint-ci
29+
30+
- name: Upload sarif
31+
uses: github/codeql-action/upload-sarif@v3
32+
# Only upload SARIF for the latest version of Node.js
33+
if: "always() && matrix.node-types-version == 'current'"
34+
with:
35+
sarif_file: eslint.sarif
36+
category: eslint
2837

2938
- name: Update version of @types/node
3039
if: matrix.node-types-version != 'current'

.github/workflows/update-release-branch.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
backport:
105105
timeout-minutes: 45
106106
runs-on: ubuntu-latest
107+
environment: Automation
107108
needs: [prepare]
108109
if: ${{ (github.event_name == 'push') && needs.prepare.outputs.backport_target_branches != '[]' }}
109110
strategy:
@@ -114,17 +115,24 @@ jobs:
114115
SOURCE_BRANCH: ${{ needs.prepare.outputs.backport_source_branch }}
115116
TARGET_BRANCH: ${{ matrix.target_branch }}
116117
steps:
118+
- uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4
119+
id: app-token
120+
with:
121+
app-id: ${{ vars.AUTOMATION_APP_ID }}
122+
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
117123
- uses: actions/checkout@v4
118124
with:
119125
fetch-depth: 0 # Need full history for calculation of diffs
120126
- uses: ./.github/actions/release-initialise
121127

122128
- name: Update older release branch
129+
env:
130+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
123131
run: |
124132
echo SOURCE_BRANCH=${SOURCE_BRANCH}
125133
echo TARGET_BRANCH=${TARGET_BRANCH}
126134
python .github/update-release-branch.py \
127-
--github-token ${{ secrets.GITHUB_TOKEN }} \
135+
--github-token ${GITHUB_TOKEN} \
128136
--repository-nwo ${{ github.repository }} \
129137
--source-branch ${SOURCE_BRANCH} \
130138
--target-branch ${TARGET_BRANCH} \

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ node_modules/.cache/
55
*.class
66
# macOS
77
.DS_Store
8+
# eslint sarif report
9+
eslint.sarif

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ See the [releases page](https://github.com/github/codeql-action/releases) for th
44

55
Note that the only difference between `v2` and `v3` of the CodeQL Action is the node version they support, with `v3` running on node 20 while we continue to release `v2` to support running on node 16. For example `3.22.11` was the first `v3` release and is functionally identical to `2.22.11`. This approach ensures an easy way to track exactly which features are included in different versions, indicated by the minor and patch version numbers.
66

7+
## 2.26.7 - 13 Sep 2024
8+
9+
- Update default CodeQL bundle version to 2.18.4. [#2471](https://github.com/github/codeql-action/pull/2471)
10+
711
## 2.26.6 - 29 Aug 2024
812

913
- Update default CodeQL bundle version to 2.18.3. [#2449](https://github.com/github/codeql-action/pull/2449)

README.md

+9-10
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,19 @@ To provide the best experience to customers using older versions of GitHub Enter
3333

3434
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/)."
3535

36-
## Supported versions of the CodeQL Bundle and GitHub Enterprise Server
36+
## Supported versions of the CodeQL Bundle on GitHub Enterprise Server
3737

3838
We typically release new minor versions of the CodeQL Action and Bundle when a new minor version of GitHub Enterprise Server (GHES) is released. When a version of GHES is deprecated, the CodeQL Action and Bundle releases that shipped with it are deprecated as well.
3939

40-
| Recommended CodeQL Action | Recommended CodeQL Bundle Version | GitHub Environment |
41-
|---------|----------|--------------|
42-
| `v3` | default (do not pass a `tools` input) | GitHub.com |
43-
| `v3.25.11` | `2.17.6` | Enterprise Server 3.14 |
44-
| `v3.24.11` | `2.16.6` | Enterprise Server 3.13 |
45-
| `v3.22.12` | `2.15.5` | Enterprise Server 3.12 |
46-
| `v2.22.1` | `2.14.6` | Enterprise Server 3.11 |
47-
| `v2.20.3` | `2.13.5` | Enterprise Server 3.10 |
40+
| Minimum CodeQL Action | Minimum CodeQL Bundle Version | GitHub Environment | Notes |
41+
|-----------------------|-------------------------------|--------------------|-------|
42+
| `v3.25.11` | `2.17.6` | Enterprise Server 3.14 | |
43+
| `v3.24.11` | `2.16.6` | Enterprise Server 3.13 | |
44+
| `v3.22.12` | `2.15.5` | Enterprise Server 3.12 | |
45+
| `v2.22.1` | `2.14.6` | Enterprise Server 3.11 | Supports CodeQL Action v3, but did not ship with CodeQL Action v3. 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/#users-of-github-enterprise-server-311)." |
46+
| `v2.20.3` | `2.13.5` | Enterprise Server 3.10 | Does not support CodeQL Action v3. |
4847

49-
CodeQL Action `v2` will stop receiving updates when GHES 3.11 is deprecated.
48+
CodeQL Action v2 will stop receiving updates when GHES 3.11 is deprecated.
5049

5150
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).
5251

analyze/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ inputs:
1919
# If changing this, make sure to update workflow.ts accordingly.
2020
default: "always"
2121
cleanup-level:
22-
description: "Level of cleanup to perform on CodeQL databases at the end of the analyze step. This should either be 'none' to skip cleanup, or be a valid argument for the --mode flag of the CodeQL CLI command 'codeql database cleanup' as documented at https://codeql.github.com/docs/codeql-cli/manual/database-cleanup"
22+
description: "Level of cleanup to perform on CodeQL databases at the end of the analyze step. This should either be 'none' to skip cleanup, or be a valid argument for the --cache-cleanup flag of the CodeQL CLI command 'codeql database cleanup' as documented at https://codeql.github.com/docs/codeql-cli/manual/database-cleanup"
2323
required: false
2424
default: "brutal"
2525
ram:

lib/codeql.js

+17-1
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/defaults.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"bundleVersion": "codeql-bundle-v2.18.3",
3-
"cliVersion": "2.18.3",
4-
"priorBundleVersion": "codeql-bundle-v2.18.2",
5-
"priorCliVersion": "2.18.2"
2+
"bundleVersion": "codeql-bundle-v2.18.4",
3+
"cliVersion": "2.18.4",
4+
"priorBundleVersion": "codeql-bundle-v2.18.3",
5+
"priorCliVersion": "2.18.3"
66
}

lib/init-action.js

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

0 commit comments

Comments
 (0)