Skip to content

Commit b38a014

Browse files
Merge pull request #126 from github/update-v1-93dd64d3
Merge main into v1
2 parents e775d4e + 93dd64d commit b38a014

43 files changed

Lines changed: 1356 additions & 799 deletions

Some content is hidden

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

.vscode/launch.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Debug AVA test file",
11+
"runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ava",
12+
"runtimeArgs": [
13+
"${file}",
14+
"--break",
15+
"--serial",
16+
"--timeout=20m"
17+
],
18+
"port": 9229,
19+
"outputCapture": "std",
20+
"skipFiles": [
21+
"<node_internals>/**/*.js"
22+
]
23+
}
24+
]
25+
}

CONTRIBUTING.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Contributing
1+
# Contributing
22

33
[fork]: https://github.com/github/codeql-action/fork
44
[pr]: https://github.com/github/codeql-action/compare
@@ -20,6 +20,8 @@ Before you start, ensure that you have a recent version of node installed. You c
2020
* Run tests: `npm run test`. You’ll need to ensure that the JavaScript files are up-to-date first by running the command above.
2121
* Run the linter: `npm run lint`.
2222

23+
This project also includes configuration to run tests from VSCode (with support for breakpoints) - open the test file you wish to run and choose "Debug AVA test file" from the Run menu in the Run panel.
24+
2325
### Running the action
2426

2527
To see the effect of your changes and to test them, push your changes in a branch and then look at the [Actions output](https://github.com/github/codeql-action/actions) for that branch. You can also exercise the code locally by running the automated tests.
@@ -35,6 +37,7 @@ As well as the unit tests (see _Common tasks_ above), there are integration test
3537
3. Make your change, add tests, and make sure the tests still pass
3638
4. Push to your fork and [submit a pull request][pr]
3739
5. Pat yourself on the back and wait for your pull request to be reviewed and merged.
40+
3841
If you're a GitHub staff member, you can merge your own PR once it's approved; for external contributors, GitHub staff will merge your PR once it's approved.
3942

4043
Here are a few things you can do that will increase the likelihood of your pull request being accepted:

analyze/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
description: The number of threads to be used by CodeQL.
2121
required: false
2222
default: "1"
23+
checkout_path:
24+
description: "The path at which the analyzed repository was checked out. Used to relativeize any absolute paths in the uploaded SARIF file."
25+
required: false
26+
default: ${{ github.workspace }}
2327
token:
2428
default: ${{ github.token }}
2529
matrix:

lib/analysis-paths.js

Lines changed: 2 additions & 2 deletions
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/analysis-paths.test.js

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

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

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

0 commit comments

Comments
 (0)