Sam Partington and Alistair Christie
517d9fad41
Improve description of queries property
...
Co-authored-by: Alistair Christie <54933897+hubwriter@users.noreply.github.com >
2020-08-17 16:33:47 +01:00
Sam Partington
443d18adb7
Improve variable name
2020-07-31 11:15:09 +01:00
Sam Partington
d998a87469
Fix typo
2020-07-31 11:13:06 +01:00
Sam Partington
f57bf21879
Tidy up test
2020-07-31 11:11:47 +01:00
Sam Partington
ca2b74f2f8
Make test name more descriptive
2020-07-30 17:05:58 +01:00
Sam Partington
7b0f432c26
Add missing JavaScript
...
https://github.com/github/codeql-action/pull/127/checks?check_run_id=915325110
2020-07-30 16:49:50 +01:00
Sam Partington
f03827d513
Add new input to the init action configuration
2020-07-27 16:50:03 +01:00
Sam Partington
2da457060b
Allow multiple overriding queries, comma-separated
2020-07-27 16:50:03 +01:00
Sam Partington
95cef22589
Add support for basic query overriding in action file itself
...
See https://github.com/github/dsp-code-scanning/issues/1446
2020-07-27 16:50:03 +01:00
Sam Partington
d1d80761ef
Merge pull request #111 from github/vscode-debugging
...
Add support for debugging from VSCode
2020-07-14 10:32:08 +01:00
Sam Partington
7a78ec0a54
Add support for debugging from VSCode
...
https://github.com/avajs/ava/blob/master/docs/recipes/debugging-with-vscode.md recommends passing the `debug` option to Ava. However, in my experience Ava waits indefinitely when this option is used, without actually running any tests.
The increased timeout setting is so that tests won't fail prematurely because you're slowly stepping through code.
2020-07-14 09:49:21 +01:00
Sam Partington
8947510a57
Merge pull request #96 from github/pr-template-test-builds
...
Remove test builds section of PR template
2020-07-02 14:23:33 +01:00
Sam Partington
5d84e87b3d
Merge branch 'main' into pr-template-test-builds
2020-07-02 14:11:18 +01:00
Sam Partington
9bc459c5f1
Merge pull request #95 from github/merge-help
...
Add details of who will merge (CONTRIBUTING.md)
2020-07-02 13:46:52 +01:00
Sam Partington
77e9a735f6
Merge branch 'main' into merge-help
2020-07-02 13:42:20 +01:00
Sam Partington
57a57713c3
Remove test builds section of PR template
...
This is covered by the CI checks now
2020-07-02 13:37:46 +01:00
Sam Partington
a0bf50cb7b
Add details of who will merge (CONTRIBUTING.md)
2020-07-02 13:35:29 +01:00
Sam Partington
55a6f9e0a8
Merge pull request #94 from github/developer-docs
...
Add development instructions to CONTRIBUTING.md
2020-07-02 11:07:06 +01:00
Sam Partington
dfed1f7eea
Point people at init/action.yml for node version
...
https://github.com/github/codeql-action/pull/94#discussion_r448502825
2020-07-02 10:55:00 +01:00
Sam Partington
580e603e94
Add development instructions to CONTRIBUTING.md
2020-07-01 14:32:04 +01:00
Sam Partington
e2a8f32427
Merge pull request #87 from github/support-remote-config
...
Allow config files to be from a remote repository
2020-06-30 15:19:23 +01:00
Sam Partington
260a93fe06
Merge branch 'main' into support-remote-config
2020-06-30 14:57:35 +01:00
Sam Partington
dc2678801a
Use right SHA in integration test
...
https://github.com/github/codeql-action/commit/1bb294af6b763c1da9d0d010aa587eeb3b4cdb5c#r40266717
2020-06-30 14:37:27 +01:00
Sam Partington
c953f77bb6
Merge pull request #92 from github/use-checkout-v2
...
Use v2 of checkout action
2020-06-30 14:33:21 +01:00
Sam Partington
aa6c2c5bda
Fix URL in integration test
...
https://github.com/github/codeql-action/runs/822529558?check_suite_focus=true#step:4:43
2020-06-30 14:32:36 +01:00
Sam Partington
a52f1a55ed
Fix workflow name
2020-06-30 14:17:37 +01:00
Sam Partington
1bb294af6b
Combine integration tests for simplicity
...
https://github.com/github/codeql-action/pull/87#issuecomment-651757413
2020-06-30 14:15:51 +01:00
Sam Partington
25a0a6baed
Use v2 of checkout action
2020-06-30 14:11:08 +01:00
Sam Partington
4b37db72e4
Add integration test for retrieval of remote config
...
https://github.com/github/codeql-action/pull/87#pullrequestreview-439357075
2020-06-30 12:22:08 +01:00
Sam Partington
ca76a2ca94
Add .DS_Store files from node module
...
https://github.com/github/codeql-action/pull/87/checks?check_run_id=811678038
2020-06-29 09:18:18 +01:00
Sam Partington
6afe41036b
Update node modules
...
https://github.com/github/codeql-action/pull/87/checks?check_run_id=811666672
2020-06-26 16:27:11 +01:00
Sam Partington
ee4cc86b19
Merge branch 'main' into support-remote-config
2020-06-26 16:14:32 +01:00
Sam Partington
0607771cc2
Make remote config retrieval more robust
2020-06-26 16:14:15 +01:00
Sam Partington
51becd2cf8
Bring error message method name inline with others
2020-06-26 15:44:57 +01:00
Sam Partington
a66f2b0b11
Remove redundant comment
2020-06-26 15:44:13 +01:00
Sam Partington
7c00663f08
Remove tests of internal function now its behaviour has been verified
2020-06-26 14:46:53 +01:00
Sam Partington
f8c87948ab
Use new API client
...
From https://github.com/github/codeql-action/pull/82
2020-06-26 14:45:37 +01:00
Sam Partington
9566d8c220
Merge branch 'main' into support-remote-config
2020-06-26 13:48:59 +01:00
Sam Partington
366d8a32d1
Retrieve remote configuration where specified
2020-06-26 11:49:00 +01:00
Sam Partington
388403b46e
Add a test that an Octokit request is made for remote config
2020-06-25 15:10:17 +01:00
Sam Partington
32c9898fa4
Fix regex
2020-06-25 15:10:17 +01:00
Sam Partington
56292b1fa3
Reset mocks in test so they don't leak into later test
2020-06-25 15:10:17 +01:00
Sam Partington
a19d19e0a3
Add validation of remote config location, no retrieval yet
2020-06-25 13:21:46 +01:00
Sam Partington
153a598a97
Add a new function used to determine where to retrieve config from
2020-06-24 16:15:25 +01:00
Sam Partington
f4cf65ca2d
Add a test that Octokit isn't used for local config
2020-06-24 14:42:29 +01:00
Sam Partington
b0af5695e6
Add sinon package for mocking
2020-06-24 14:34:08 +01:00
Sam Partington
43c1bea680
Run npm install so have clear baseline
2020-06-24 14:33:14 +01:00
Sam Partington
a30a5ba788
Add silencing to additional test files
...
https://github.com/github/codeql-action/pull/75#issuecomment-648104201
2020-06-23 13:59:58 +01:00
Sam Partington
8a67191278
Merge pull request #76 from github/update-release-branch-base
...
Update release branch base
2020-06-23 10:27:04 +01:00
Sam Partington
1ce7f98898
Update other references to master in release script
2020-06-23 10:10:23 +01:00
Sam Partington
6d413dd723
Update release branch script as main branch is now "main".
...
See https://github.com/github/dsp-code-scanning/issues/1457
2020-06-23 10:08:23 +01:00
Sam Partington
8622312249
Update JavaScript with newer comment
2020-06-22 17:20:29 +01:00
Sam Partington
c0c67ce80f
Reduce debug output in tests
2020-06-22 17:13:47 +01:00
Sam Partington
608ed15968
Merge pull request #67 from github/dont-fail-on-symlinks
...
Ensure config path comparisons don't fail where workspace path is a symlink
2020-06-18 09:21:27 +01:00
Sam Partington
14f179f70b
Merge branch 'master' into dont-fail-on-symlinks
2020-06-17 16:14:36 +01:00
Sam Partington
dc4009c7ed
Merge pull request #68 from github/ignore-javascript
...
Configure VSCode to ignore transpiled JavaScript
2020-06-17 16:14:07 +01:00
Sam Partington
14d602cced
Fix test failures introduced by making code more robust
2020-06-17 16:00:19 +01:00
Sam Partington
24096a1cb3
Don't fail if query path doesn't exist
2020-06-17 15:55:14 +01:00
Sam Partington
1aae76b906
Configure VSCode to ignore transpiled JavaScript
2020-06-17 14:57:29 +01:00
Sam Partington
013c02758e
Apply realpathSync sooner
...
Fixes lint: https://github.com/github/codeql-action/pull/67/checks?check_run_id=777215812
2020-06-16 17:04:30 +01:00
Sam Partington
0b53ebbc36
Fix config path comparisons where workspace path is a symlink
...
Before this change, config-utils.ts › load non-empty input was failing on Mac with:
The configuration file "/var/folders/gx/y8v1507s29d97m1r_5kq0s000000gn/T/codeql-action-oum66d/input" is invalid: property "queries.uses" is invalid as the local path "" is outside of the repository
The reason is that the tmp directory (which is where the config file was put by the test) was a symlink.
2020-06-16 16:59:15 +01:00
Sam Partington
87ecd0d0cc
Merge pull request #64 from github/remove-jest-config
...
Remove jest config as tests use Ava now
2020-06-15 17:04:17 +01:00
Sam Partington
7e2e297e07
Remove jest config as tests use Ava now
...
Usage of Jest was removed in https://github.com/github/codeql-action/pull/18
2020-06-15 16:24:34 +01:00