Skip to content

Commit 8840544

Browse files
authored
Merge branch 'main' into aeisenberg/upload-sarif-limits
2 parents 604a6c3 + af42a70 commit 8840544

106 files changed

Lines changed: 76792 additions & 56292 deletions

File tree

Some content is hidden

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

.github/prepare-test/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ name: "Prepare test"
22
description: Performs some preparation to run tests
33
inputs:
44
version:
5+
description: "The version of the CodeQL CLI to use. Can be 'latest', 'cached', 'nightly-latest', 'nightly-YYYY-MM-DD', or 'stable-YYYY-MM-DD'."
56
required: true
67
outputs:
78
tools-url:
9+
description: "The value that should be passed as the 'tools' input of the 'init' step."
810
value: ${{ steps.get-url.outputs.tools-url }}
911
runs:
1012
using: composite
@@ -20,6 +22,7 @@ runs:
2022
name: Determine URL
2123
shell: bash
2224
run: |
25+
set -e # Fail this Action if `gh release list` fails.
2326
if [[ ${{ inputs.version }} == "nightly-latest" ]]; then
2427
export LATEST=`gh release list --repo dsp-testing/codeql-cli-nightlies -L 1 | cut -f 3`
2528
echo "tools-url=https://github.com/dsp-testing/codeql-cli-nightlies/releases/download/$LATEST/codeql-bundle.tar.gz" >> $GITHUB_OUTPUT
@@ -34,5 +37,6 @@ runs:
3437
elif [[ ${{ inputs.version }} == "cached" ]]; then
3538
echo "tools-url=" >> $GITHUB_OUTPUT
3639
else
37-
echo "::error Unrecognized version specified!"
40+
echo "::error::Unrecognized version specified!"
41+
exit 1
3842
fi

.github/workflows/__swift-autobuild.yml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/script/check-node-modules.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ if [ ! -z "$(git status --porcelain)" ]; then
77
>&2 echo "Failed: Repo should be clean before testing!"
88
exit 1
99
fi
10-
# Pin npm to v8 since v9 doesn't support Node 12.
1110
# When updating this, make sure to update the npm version in
1211
# `.github/workflows/update-dependencies.yml` too.
13-
sudo npm install --force -g npm@^8.19.3
12+
sudo npm install --force -g npm@9.2.0
1413
# Reinstall modules and then clean to remove absolute paths
1514
# Use 'npm ci' instead of 'npm install' as this is intended to be reproducible
1615
npm ci

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ jobs:
2727
run: |
2828
git fetch origin "$BRANCH" --depth=1
2929
git checkout "origin/$BRANCH"
30-
# Pin npm to v8 since v9 doesn't support Node 12.
3130
# When updating this, make sure to update the npm version in
3231
# `.github/workflows/script/check-node-modules.sh` too.
33-
sudo npm install --force -g npm@^8.19.3
32+
sudo npm install --force -g npm@9.2.0
3433
npm install
3534
npm ci
3635
npm run removeNPMAbsolutePaths

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- The tool cache now contains **two** recent CodeQL versions (previously **one**).
1717
- Each CodeQL version is located under a directory named after the release date and version number, e.g. CodeQL 2.11.6 is now located under `CodeQL/2.11.6-20221211/x64/codeql` (previously `CodeQL/0.0.0-20221211/x64/codeql`).
1818
- The maximum number of [SARIF runs](https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning#run-object) per file has been increased from 15 to 20 for users uploading SARIF files to GitHub.com. This change will help ensure that Code Scanning can process SARIF files generated by third-party tools that have many runs. See the [GitHub API documentation](https://docs.github.com/en/rest/code-scanning?apiVersion=2022-11-28#upload-an-analysis-as-sarif-data) for a list of all the limits around uploading SARIF. This change will be released to GitHub Enterprise Server as part of GHES 3.9.
19+
- Update default CodeQL bundle version to 2.12.1. [#1498](https://github.com/github/codeql-action/pull/1498)
1920
- Fix a bug that forced the `init` Action to run for at least two minutes on JavaScript. [#1494](https://github.com/github/codeql-action/pull/1494)
2021

2122
## 2.1.39 - 18 Jan 2023

lib/analyze-action.js

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)