Skip to content

Commit 2fe1a3d

Browse files
author
Dave Bartolomeo
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

Lines changed: 0 additions & 4 deletions
This file was deleted.

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

Lines changed: 10 additions & 4 deletions
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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

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

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

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

.github/workflows/pr-checks.yml

Lines changed: 10 additions & 1 deletion
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

Lines changed: 9 additions & 1 deletion
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} \

0 commit comments

Comments
 (0)