Skip to content

Commit b8f7e0f

Browse files
Merge pull request #166 from github/update-v1-5bd2832b
Merge main into v1
2 parents 06fb482 + 5bd2832 commit b8f7e0f

File tree

3,426 files changed

+6471
-444891
lines changed

Some content is hidden

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

3,426 files changed

+6471
-444891
lines changed

.github/workflows/cli.yml

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

.github/workflows/pr-checks.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
>&2 echo "Failed: Repo should be clean before testing!"
2525
exit 1
2626
fi
27+
# Wipe the lib directory incase there are extra unnecessary files in there
28+
rm -rf lib
2729
# Generate the JavaScript files
2830
npm run-script build
2931
# Check that repo is still clean
@@ -63,9 +65,12 @@ jobs:
6365
echo "Success: node_modules are up to date"
6466
6567
npm-test:
66-
runs-on: ubuntu-latest
68+
strategy:
69+
matrix:
70+
os: [ubuntu-latest,macos-latest]
71+
runs-on: ${{ matrix.os }}
6772

6873
steps:
6974
- uses: actions/checkout@v1
7075
- name: npm run-script test
71-
run: npm run-script test
76+
run: npm run-script test

.github/workflows/runner.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "CodeQL runner"
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Build runner
13+
run: |
14+
cd runner
15+
npm install
16+
npm run build-runner
17+
18+
- name: Upload with runner
19+
run: |
20+
runner/dist/codeql-runner-linux upload \
21+
--sarif-file src/testdata/empty-sarif.sarif \
22+
--repository $GITHUB_REPOSITORY \
23+
--commit $GITHUB_SHA \
24+
--ref $GITHUB_REF \
25+
--github-url $GITHUB_API_URL \
26+
--github-auth ${{ github.token }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/cli/
2-
1+
/runner/dist/
2+
/runner/node_modules/

CONTRIBUTING.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ Running locally will generate the CodeQL database and run all the queries, but i
4949

5050
As well as the unit tests (see _Common tasks_ above), there are integration tests, defined in `.github/workflows/integration-testing.yml`. These are run by a CI check. Depending on the change you’re making, you may want to add a test to this file or extend an existing one.
5151

52+
### Building the CodeQL runner
53+
54+
Navigate to the `runner` directory and run `npm install` to install dependencies needed only for compiling the CodeQL runner. Run `npm run build-runner` to output files to the `runner/dist` directory.
55+
5256
## Submitting a pull request
5357

5458
1. [Fork][fork] and clone the repository

analyze/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ inputs:
2929
default: ${{ toJson(matrix) }}
3030
runs:
3131
using: 'node12'
32-
main: '../lib/finalize-db.js'
32+
main: '../lib/analyze-action.js'

autobuild/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ inputs:
88
default: ${{ toJson(matrix) }}
99
runs:
1010
using: 'node12'
11-
main: '../lib/autobuild.js'
11+
main: '../lib/autobuild-action.js'

init/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ inputs:
1616
config-file:
1717
description: Path of the config file to use
1818
required: false
19+
queries:
20+
description: Comma-separated list of additional queries to run. By default, this overrides the same setting in a configuration file
21+
required: false
1922
runs:
2023
using: 'node12'
21-
main: '../lib/setup-tracer.js'
24+
main: '../lib/init-action.js'
Lines changed: 13 additions & 13 deletions
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 & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)