Simon Engledew
26ade03b50
Just reverse test case
2021-06-24 18:00:10 +01:00
Simon Engledew
9200db3ec4
Restore original getCodeQLActionRepository behaviour
2021-06-24 17:52:48 +01:00
Simon Engledew
bb012c4070
Merge pull request #432 from github/simon-engledew/fix-ref-check
...
Fix rev-parse errors
2021-03-25 14:02:01 +00:00
Simon Engledew
ba14abbca7
Rewrite the ref to correctly point to refs/remotes
...
Fixes the rev-parse issues caused by https://github.com/github/codeql-action/pull/428
2021-03-25 13:08:55 +00:00
Simon Engledew
972dc3e3f9
Merge pull request #428 from github/simon-engledew/detect-merge
...
Fix race condition with actions/checkout@v1
2021-03-23 06:18:28 +00:00
Simon Engledew
9165099103
Skip doing work if it is not necessary
2021-03-22 15:50:04 +00:00
Simon Engledew
36a9516acc
PR feedback
2021-03-22 15:09:33 +00:00
Simon Engledew
ef92c5ac5f
Count the number of parents of the current commit to check it is still a merge
...
Work around a race condition in actions where sometimes GITHUB_SHA != git rev-parse head
2021-03-22 12:05:00 +00:00
Simon Engledew
145b51c270
Merge pull request #410 from github/update-v1-bde489c6
...
Merge main into v1
2021-03-08 15:50:17 +00:00
Simon Engledew
bde489c632
Merge pull request #406 from github/simon-engledew/go-module
...
Check if this mitigates the go 1.16 issue
2021-03-01 13:20:17 +00:00
Simon Engledew
324d987bc6
Check if this mitigates the go 1.16 issue
2021-03-01 13:01:56 +00:00
Simon Engledew
c4084e1c1a
Merge pull request #386 from github/simon-engledew/warning-undefined
...
Do not report warning: undefined
2021-02-02 10:17:59 +00:00
Simon Engledew
f3f5dfd3df
Merge branch 'main' into simon-engledew/warning-undefined
2021-02-02 10:06:49 +00:00
Simon Engledew
169b9f804b
Fix lint errors
2021-02-02 09:59:06 +00:00
Simon Engledew
1f07e287da
Do not report warning: undefined
2021-02-01 16:32:13 +00:00
Simon Engledew
6408d72268
Merge pull request #367 from github/simon-engledew/remove-january-warning
...
Remove date specific pull request warnings
2021-01-29 10:47:59 +00:00
Simon Engledew
44ed1c6ce1
Remove pull request warnings
2021-01-29 10:42:37 +00:00
Simon Engledew
7a340d32a1
Merge pull request #370 from github/simon-engledew/hide-workflow-not-found
...
Do not warn users if a workflow cannot be read
2021-01-25 09:21:11 +00:00
Simon Engledew
ee4d06713e
Fix wonky comment
2021-01-22 14:08:43 +00:00
Simon Engledew
6be1f5ce0e
Add more granular exception handling
2021-01-22 13:52:04 +00:00
Simon Engledew
8a9922df92
Disambiguate report messages
2021-01-22 13:52:04 +00:00
Simon Engledew
795b1923ec
Swap method naming to account for new functionality
2021-01-22 13:52:03 +00:00
Simon Engledew
28e2860afb
Correctly report WorkflowMissing
2021-01-22 13:51:45 +00:00
Simon Engledew
4547749a2f
Do not warn users if a workflow cannot be read
...
This will still send a LintFailed message status report.
2021-01-22 13:51:19 +00:00
Simon Engledew
4bdcd08344
Merge pull request #363 from github/simon-engledew/fix-incorrect-branch-warning
...
Fix overzealous warnings when PR scanning is not required
2021-01-15 10:59:19 +00:00
Simon Engledew
b6fc7138bf
Merge branch 'main' into simon-engledew/fix-incorrect-branch-warning
2021-01-15 10:41:33 +00:00
Simon Engledew
1a6f6a27b3
Implement PR feedback
2021-01-15 08:28:21 +00:00
Simon Engledew
0853901c0d
Fix overzealous warning when PR scanning is not required
2021-01-13 12:28:24 +00:00
Simon Engledew
b1e0b46970
Merge pull request #348 from github/simon-engledew/checkout-wrong-heads
...
Only report the first CheckoutWrongHead lint error
2021-01-04 14:19:05 +00:00
Simon Engledew
034bf318b8
Merge branch 'main' into simon-engledew/checkout-wrong-heads
2021-01-04 13:37:11 +00:00
Simon Engledew
456cd431ff
Improve test coverage
2021-01-04 12:05:37 +00:00
Simon Engledew
1511db33b3
Only check the steps of the job currently being run
2021-01-04 12:00:15 +00:00
Simon Engledew
e89a24b8cb
Only report the first CheckoutWrongHead lint error
2020-12-21 11:08:49 +00:00
Simon Engledew
dc999c55d0
Merge pull request #346 from github/simon-engledew/fix-numerical-branches
...
Fix for numerical branch names
2020-12-21 09:17:09 +00:00
Simon Engledew
2d00e8c6f7
Fix for numerical branch names
2020-12-18 10:23:46 +00:00
Simon Engledew
a43ce966aa
Merge pull request #332 from github/simon-engledew/string-branches
...
Handle the case where branches may be strings, wildcards
2020-12-04 16:27:00 +00:00
Simon Engledew
18c6a7d6d1
fix another edge case
2020-12-04 15:18:22 +00:00
Simon Engledew
1dc40ba165
Merge remote-tracking branch 'origin/main' into simon-engledew/string-branches
2020-12-04 12:36:42 +00:00
Simon Engledew
7100f22932
Add a bunch of tests cases and harden the function aganst malformed workflows
2020-12-03 13:41:55 +00:00
Simon Engledew
7310a508e1
Merge pull request #335 from github/simon-engledew/backport-v1
...
Backport v1 into main
2020-12-02 16:54:52 +00:00
Simon Engledew
f3c9aee686
Hide an warning that is confusing on GHES
2020-12-02 16:49:54 +00:00
Simon Engledew
107fe8422f
Add advanced test case
2020-12-02 08:48:34 +00:00
Simon Engledew
ec8015bc03
Merge branch 'main' into simon-engledew/string-branches
2020-12-02 08:35:11 +00:00
Simon Engledew
78b9d23d09
Remove unecessary if statement
2020-12-02 08:34:18 +00:00
Simon Engledew
1dd265aef3
Merge pull request #333 from github/simon-engledew/hide-warnings-v1
...
Hide a warning that is confusing on GHES
2020-12-02 08:31:48 +00:00
Simon Engledew
698e2a5487
Just convert the pattern into a RegExp...
2020-12-01 20:56:07 +00:00
Simon Engledew
4d862616ce
First iteration on feedback
2020-12-01 20:08:41 +00:00
Simon Engledew
56b1ead679
Do not show lint failed in the UX if it happens
2020-12-01 17:23:00 +00:00
Simon Engledew
b1be00db57
Test the branch patterns work both ways
2020-12-01 17:16:33 +00:00
Simon Engledew
c3a9325bd8
Hide an warning that is confusing on GHES
2020-12-01 16:59:15 +00:00
Simon Engledew
f99af1c014
Have a catch all coded error for lint failures
2020-12-01 15:41:04 +00:00
Simon Engledew
145a3c1ed9
Add more wildcard examples
2020-12-01 15:33:27 +00:00
Simon Engledew
14719432ef
Add more test cases
2020-12-01 15:30:11 +00:00
Simon Engledew
c8ee1f4ef3
Handle wildcard branches
2020-12-01 15:21:30 +00:00
Simon Engledew
ac1c081de8
Handle the case where branches may be strings, including "*"
2020-12-01 12:03:50 +00:00
Simon Engledew
8d18e347a7
Merge pull request #319 from github/simon-engledew/lint-workspace
...
Validate the codeql-action workspace for common errors
2020-11-26 16:36:46 +00:00
Simon Engledew
92df38732c
Merge branch 'main' into simon-engledew/lint-workspace
2020-11-26 15:22:22 +00:00
Simon Engledew
be09fb3e99
Implement feedback
2020-11-26 15:20:38 +00:00
Simon Engledew
378f1f95d7
Merge pull request #320 from github/simon-engledew/fix-DEP0005-buffer
...
Fix deprecated method Buffer.new
2020-11-25 16:25:07 +00:00
Simon Engledew
eed314143b
Add paths-ignore case
2020-11-25 14:23:21 +00:00
Simon Engledew
253d46ac97
Better copy for PathsSpecified, suggested by @sampart
2020-11-25 13:30:32 +00:00
Simon Engledew
c5f58f3ee7
Markdown is not supported - roll back and fix typo
2020-11-25 13:06:51 +00:00
Simon Engledew
94b10dbb8f
See if markdown is supported
2020-11-25 12:46:37 +00:00
Simon Engledew
85aefe5fa4
Signpost the latest documentation in the warning
2020-11-25 12:45:13 +00:00
Simon Engledew
582f792089
Fix deprecated method Buffer.new
2020-11-25 12:38:45 +00:00
Simon Engledew
8d468d67de
Improve linting hints
2020-11-25 12:36:59 +00:00
Simon Engledew
c06dcf8fa2
Update source
2020-11-25 11:03:48 +00:00
Simon Engledew
cb3b3a8cb5
Comment the lint cases to make maintaining easier
2020-11-25 10:55:06 +00:00
Simon Engledew
92ffb08081
Tidy up ready for review
2020-11-24 17:21:25 +00:00
Simon Engledew
1020df5700
Merge branch 'main' into simon-engledew/lint-workspace
2020-11-24 14:55:54 +00:00
Simon Engledew
fd16298746
Revert an accidental change to make testing quicker
2020-11-24 14:28:08 +00:00
Simon Engledew
2ac22e8935
Send short codes that do not need URL encoding for better splunk tracing
2020-11-24 12:43:08 +00:00
Simon Engledew
6df1fc5e38
Do not fail if the workflow has been deleted
2020-11-24 10:51:31 +00:00
Simon Engledew
754f502a84
Workflow triggers are null if unspecified
2020-11-24 10:25:58 +00:00
Simon Engledew
c0bd7b0b2b
Handle relative workflow paths
2020-11-24 09:56:10 +00:00
Simon Engledew
33bb87523e
Write a warning if there is an error with the workflow
2020-11-24 09:51:00 +00:00
Simon Engledew
7eb9dfcc60
Add a function that can lint a CodeQL action workflow
2020-11-23 17:29:19 +00:00
Simon Engledew
31872f129b
Merge pull request #308 from github/simon-engledew/fast-fail
...
Abort CodeQL action if the status cannot be reported
2020-11-20 10:45:40 +00:00
Simon Engledew
6a45994b42
Merge branch 'main' into simon-engledew/fast-fail
2020-11-20 09:21:26 +00:00
Simon Engledew
eb4226ede4
Scanning endpoint failures should not halt the scan
2020-11-19 15:49:46 +00:00
Simon Engledew
7fda765d49
Merge remote-tracking branch 'origin/main' into simon-engledew/fast-fail
2020-11-19 13:55:47 +00:00
Simon Engledew
17d4671d60
Fail processing on a 422 as well
...
Until there is a more robust versioning system it is probably safest to require endpoint compatiblity and not continue the action if there is a mismatch.
2020-11-19 13:14:45 +00:00
Simon Engledew
f3ff4c84ba
Implement review feedback
2020-11-19 12:39:57 +00:00
Simon Engledew
68dedeaa57
Do not run CodeQL if code scanning is not enabled
...
Put more fine grained logic around which errors we ignore and process.
Re-instate status reporting in Enterprise.
Abort the code scanning process the status endpoint reports it is not configured.
2020-11-18 17:21:57 +00:00
Simon Engledew
e3bfd25a41
Merge pull request #293 from github/update-v1-f13bd452
...
Merge main into v1
2020-11-09 10:22:41 +00:00
Simon Engledew
f13bd452d7
Merge pull request #291 from github/simon-engledew/output-codeql-path
...
Add a codeql-path output to the init action
2020-11-05 10:22:10 +00:00
Simon Engledew
f76124122e
Remove output from README
...
As this is an advanced usage it makes more sense to work to getting this included in the documentation instead.
2020-11-05 08:31:35 +00:00
Simon Engledew
c87f3021d4
Expand readme to include codeql-path output example
...
Also add example from README into workflow to confirm it is accurate.
2020-11-04 19:35:19 +00:00
Simon Engledew
54f3e52e8f
Move setOutput into try block in case it errors
2020-11-04 19:29:06 +00:00
Simon Engledew and Chris Gavin
ff6db59d5a
Fix indentation for action output
...
Co-authored-by: Chris Gavin <chris@chrisgavin.me >
2020-11-04 19:16:09 +00:00
Simon Engledew
77f914a4ba
Add codeql-path to README (wip)
2020-11-04 17:22:32 +00:00
Simon Engledew
c213a7c7c9
Use codeql-path output in python-deps workflow
2020-11-04 17:22:32 +00:00
Simon Engledew
854109fe92
Report the path of CodeQL as an output
2020-11-04 15:38:31 +00:00
Simon Engledew
0ed3207eb5
Merge pull request #289 from github/simon-engledew/fix-act-local
...
Fix invalid API call when running locally
2020-11-04 14:30:51 +00:00
Simon Engledew
df843a2867
Merge branch 'main' into simon-engledew/fix-act-local
2020-11-04 12:47:38 +00:00
Simon Engledew
1c8d72e0c2
Remove unnecessary env manipulation
...
testing-utils.ts / setupTests() already stores and restores the env
2020-11-04 10:59:35 +00:00
Simon Engledew
5c0e2f93f1
Fix invalid API call when running locally
...
The method getAnalysisKey would call getWorkflowPath and raise an API Error.
This change follows the pattern in prepareLocalRunEnvironment to set a dummy value for the required environment variable, therefore shortcutting the API request.
2020-11-04 09:58:09 +00:00
Simon Engledew
a6c99e6b5b
Merge pull request #287 from github/disable-gpgsign-in-tests
...
Disable gpg key signing in tests
2020-11-03 15:08:31 +00:00
Simon Engledew
d7bd6e39e3
Merge branch 'main' into disable-gpgsign-in-tests
2020-11-03 14:47:39 +00:00
Simon Engledew
efc3797e30
Disable gpg key signing in tests
...
This avoids a popup appearing if your GPG key has a passphrase and ensures the tests still pass even if GPG is misconfigured.
2020-11-03 11:05:49 +00:00