Skip to content

Commit 2d6f607

Browse files
authored
Merge branch 'main' into rneatherway/optional-merge
2 parents 7795860 + 2841489 commit 2d6f607

566 files changed

Lines changed: 76813 additions & 151832 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.

.eslintrc.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,10 @@
4444
"@typescript-eslint/prefer-regexp-exec": "off",
4545
"@typescript-eslint/require-await": "off",
4646
"@typescript-eslint/restrict-template-expressions": "off",
47-
"eslint-comments/no-use": "off",
4847
"func-style": "off",
49-
"github/array-foreach": "off",
5048
"github/no-then": "off",
5149
"import/no-extraneous-dependencies": "off",
5250
"no-shadow": "off",
53-
"no-sparse-arrays": "off",
54-
"no-throw-literal": "off",
55-
"no-useless-escape": "off",
5651
"sort-imports": "off"
5752
}
5853
}]

.github/workflows/codeql.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "CodeQL action"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
build:

.github/workflows/integration-testing.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "Integration Testing"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
multi-language-repo_test-autodetect-languages:
@@ -41,6 +44,7 @@ jobs:
4144
fail-fast: false
4245
matrix:
4346
os: [ubuntu-latest, windows-latest, macos-latest]
47+
tools: [~, latest]
4448
runs-on: ${{ matrix.os }}
4549

4650
steps:
@@ -53,6 +57,7 @@ jobs:
5357
mv ../action/tests/multi-language-repo/{*,.github} .
5458
- uses: ./../action/init
5559
with:
60+
tools: ${{ matrix.tools }}
5661
languages: cpp,csharp,java,javascript,python
5762
config-file: github/codeql-action/tests/multi-language-repo/.github/codeql/custom-queries.yml@${{ github.sha }}
5863
- name: Build code
@@ -150,7 +155,7 @@ jobs:
150155
- uses: ./../action/analyze
151156
env:
152157
TEST_MODE: true
153-
158+
154159
runner-analyze-javascript-ubuntu:
155160
runs-on: ubuntu-latest
156161

@@ -176,7 +181,7 @@ jobs:
176181
runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
177182
env:
178183
TEST_MODE: true
179-
184+
180185
runner-analyze-javascript-windows:
181186
runs-on: windows-latest
182187

@@ -198,7 +203,7 @@ jobs:
198203
runner/dist/codeql-runner-win.exe analyze --repository $Env:GITHUB_REPOSITORY --commit $Env:GITHUB_SHA --ref $Env:GITHUB_REF --github-url $Env:GITHUB_SERVER_URL --github-auth ${{ github.token }}
199204
env:
200205
TEST_MODE: true
201-
206+
202207
runner-analyze-javascript-macos:
203208
runs-on: macos-latest
204209

@@ -220,7 +225,7 @@ jobs:
220225
runner/dist/codeql-runner-macos analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
221226
env:
222227
TEST_MODE: true
223-
228+
224229
runner-analyze-csharp-ubuntu:
225230
runs-on: ubuntu-latest
226231

@@ -254,7 +259,7 @@ jobs:
254259
../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
255260
env:
256261
TEST_MODE: true
257-
262+
258263
runner-analyze-csharp-windows:
259264
runs-on: windows-latest
260265

@@ -325,7 +330,7 @@ jobs:
325330
env:
326331
TEST_MODE: true
327332

328-
333+
329334
runner-analyze-csharp-autobuild-ubuntu:
330335
runs-on: ubuntu-latest
331336

@@ -358,7 +363,7 @@ jobs:
358363
../action/runner/dist/codeql-runner-linux analyze --repository $GITHUB_REPOSITORY --commit $GITHUB_SHA --ref $GITHUB_REF --github-url $GITHUB_SERVER_URL --github-auth ${{ github.token }}
359364
env:
360365
TEST_MODE: true
361-
366+
362367
runner-analyze-csharp-autobuild-windows:
363368
runs-on: windows-latest
364369

.github/workflows/pr-checks.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: "PR checks"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [main, v1]
6+
pull_request:
47

58
jobs:
69
lint-js:
@@ -62,7 +65,7 @@ jobs:
6265
exit 1
6366
fi
6467
echo "Success: node_modules are up to date"
65-
68+
6669
npm-test:
6770
strategy:
6871
matrix:

.github/workflows/split.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
#
2+
# Split the CodeQL Bundle into platform bundles
3+
#
4+
# Instructions:
5+
# 1. Upload the new codeql-bundle (codeql-bundle.tar.gz) as an asset of the
6+
# release (codeql-bundle-20200826)
7+
# 2. Take note of the CLI Release used by the bundle (e.g., v2.2.5)
8+
# 3. Manually launch this workflow file (via the Actions UI) specifying
9+
# - The CLI Release (e.g., v2.2.5)
10+
# - The release tag (e.g., codeql-bundle-20200826)
11+
# 4. If everything succeeds you should see 3 new assets.
12+
#
13+
14+
name: Split Bundle
15+
16+
on:
17+
workflow_dispatch:
18+
inputs:
19+
cli-release:
20+
description: 'CodeQL CLI Release (e.g., "v2.2.5")'
21+
required: true
22+
bundle-tag:
23+
description: 'Tag of the bundle release (e.g., "codeql-bundle-20200826")'
24+
required: true
25+
26+
jobs:
27+
build:
28+
runs-on: ubuntu-latest
29+
env:
30+
CLI_RELEASE: "${{ github.event.inputs.cli-release }}"
31+
RELEASE_TAG: "${{ github.event.inputs.bundle-tag }}"
32+
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
platform: ["linux64", "osx64", "win64"]
37+
38+
steps:
39+
- name: Resolve Upload URL for the release
40+
id: save_url
41+
run: |
42+
UPLOAD_URL=$(curl -sS \
43+
"https://api.github.com/repos/${GITHUB_REPOSITORY}/releases/tags/${RELEASE_TAG}" \
44+
-H "Accept: application/json" \
45+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" | jq .upload_url | sed s/\"//g)
46+
echo ${UPLOAD_URL}
47+
echo "::set-output name=upload_url::${UPLOAD_URL}"
48+
49+
- name: Download CodeQL CLI and Bundle
50+
run: |
51+
wget --no-verbose "https://github.com/${GITHUB_REPOSITORY}/releases/download/${RELEASE_TAG}/codeql-bundle.tar.gz"
52+
wget --no-verbose "https://github.com/github/codeql-cli-binaries/releases/download/${CLI_RELEASE}/codeql-${{matrix.platform}}.zip"
53+
54+
- name: Create Platform Package
55+
# Replace the codeql-binaries with the platform specific ones
56+
run: |
57+
gunzip codeql-bundle.tar.gz
58+
tar -f codeql-bundle.tar --delete codeql
59+
unzip -q codeql-${{matrix.platform}}.zip
60+
tar -f codeql-bundle.tar --append codeql
61+
gzip codeql-bundle.tar
62+
mv codeql-bundle.tar.gz codeql-bundle-${{matrix.platform}}.tar.gz
63+
du -sh codeql-bundle-${{matrix.platform}}.tar.gz
64+
65+
- name: Upload Platform Package
66+
uses: actions/upload-release-asset@v1
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
with:
70+
upload_url: ${{ steps.save_url.outputs.upload_url }}
71+
asset_path: ./codeql-bundle-${{matrix.platform}}.tar.gz
72+
asset_name: codeql-bundle-${{matrix.platform}}.tar.gz
73+
asset_content_type: application/tar+gzip

lib/analysis-paths.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.

lib/analysis-paths.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: 32 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)