Marco Gario
0a76b97b28
Prefer GITHUB_REF to CODE_SCANNING_REF
...
Given that the GITHUB_REF is a protected variable, we want to prefer it to
CODE_SCANNING_REF. This should prevent accidentally overwriting these values.
The logic is a bit more involved, as I think it makes sense to raise the error
about GITHUB_REF not being set, rather than mentioning CODE_SCANNING_REF if
both are not set.
2022-11-16 10:49:49 +01:00
Henry Mercer
0dea34e91c
Merge branch 'main' into henrymercer/delete-runner-part-2
2022-11-15 19:35:30 +00:00
Marco Gario
2bca6af0e5
Read CODE_SCANNING_REF
2022-11-15 15:26:47 +01:00
Henry Mercer
9df773d1a3
Remove unneeded apiDetails input to getApiClient
2022-11-14 19:55:30 +00:00
Henry Mercer
3d46406f3b
Remove runner-only input to databaseInitCluster
2022-11-14 18:49:17 +00:00
Henry Mercer
03bb58c07d
Remove note about separation in actions-util
...
We could move everything into `util`, but in some ways it is nice having
a file dedicated to Actions related utilities.
2022-11-14 18:46:43 +00:00
Cornelius Riemenschneider
bfcbb093ac
Re-export codeql testing environment variable to subsequent steps, if set.
2022-11-01 13:18:57 +01:00
Cornelius Riemenschneider
4b73c4f99e
Actions status report: Send testing_environment.
...
The testing environment is taken from the environment variable
CODEQL_ACTION_TESTING_ENVIRONMENT.
2022-11-01 13:18:57 +01:00
Cornelius Riemenschneider
f3a27d6945
GHES 3.1 has been deprecated end of June 2022.
...
Therefore, we do not need to support the workaround for
action telemetry anymore.
2022-10-18 14:20:52 +02:00
Josh Soref
a4e4529299
Correct program name
2022-09-27 22:08:31 -04:00
David Verdeguer
a03f3bd585
Build js
2022-09-07 09:45:19 +02:00
Chris Gavin
5960bffd3f
When running on a schedule, make a better guess about whether we're analyzing the default branch.
2022-08-25 10:58:16 +01:00
Henry Mercer
219a937551
Require test mode to be set to use expect-error input
...
This should be more robust than determining whether the repo is the
CodeQL Action or a fork of it.
2022-08-17 14:49:24 +01:00
Angela P Wen
9b7fa3dd99
Add expect-error input to force PR check green on expected failure ( #1177 )
2022-08-16 16:27:14 -07:00
Angela P Wen
15608ceae3
Merge remote-tracking branch 'origin/main' into angelapwen/post-init-cleanup
2022-08-11 15:24:10 +02:00
Angela P Wen
4e121c0ef5
Address additional review comments
2022-08-11 13:58:01 +02:00
Angela P Wen
65d6ee0c51
Address review comments
2022-08-11 13:45:26 +02:00
Edoardo Pirovano
3835e64c38
Remove distrust of GITHUB_ACTION_REF for local actions
2022-08-10 09:39:03 +01:00
Angela P Wen
7f86ddc26d
Move debug log printing back to actions util
2022-08-02 12:41:08 +02:00
Angela P Wen
eeee462f05
Move debug artifact methods into separate file
2022-08-02 12:27:52 +02:00
Angela P Wen
5895ab0c0b
Address more PR comments, refactoring
2022-08-02 12:18:44 +02:00
Angela P Wen
5da7870265
Refactoring per PR comments
2022-08-01 12:52:16 +02:00
Angela P Wen
8a4a573d59
Error handling for JSON parsing
2022-08-01 12:12:49 +02:00
Angela P Wen
52de49c899
Refactor helper function to util
2022-08-01 11:42:55 +02:00
Angela P Wen
2746051310
Catch case where database isn't finalized
2022-07-29 12:00:07 +02:00
Angela P Wen
1016eba538
Move logs, SARIF actions uploads to post: hooks
2022-07-29 11:29:39 +02:00
Henry Mercer
c736697abf
Remove toolcache decorator
...
This decorator enabled us to use the functionality of the Actions
toolcache within the runner too.
Now that we've deleted the runner we no longer need it.
2022-06-30 09:16:10 +01:00
Henry Mercer
7c2be06006
Factor out test mode determination code
2022-04-28 19:13:22 +01:00
Andrew Eisenberg
426a3951ee
Exclude pull requests from actions/runs request
...
This will save time when fetcing the current run and we
don't use the pull requests for anything anyway. It is
ok to leave out.
2022-04-07 14:02:44 -07:00
Henry Mercer
a2949f47b3
Update actions/checkout from v2 to v3
2022-03-30 19:46:09 +01:00
Andrew Eisenberg
88db5e75ec
Merge branch 'main' into aeisenberg/checkout-path-commitoid
2022-03-25 10:31:47 -07:00
Andrew Eisenberg
d068f5372a
Fix failing tests
2022-03-25 10:00:47 -07:00
Chuan-kai Lin
c3010cb18a
Status reporting: fix codeql_version field name
2022-03-23 11:32:03 -07:00
Tobias Speicher
0a713019c3
refactor: replace deprecated String.prototype.substr()
...
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com >
2022-03-20 17:08:43 +01:00
Chuan-kai Lin
f60bb5cc38
Include CodeQL CLI and action versions in status reports
2022-03-17 10:07:29 -07:00
Chuan-kai Lin
ea5898d606
Restore compatibility with GHES 3.1: address code review comments
2022-03-14 15:44:16 -07:00
Chuan-kai Lin
aeefdce612
Restore compatibility with GHES 3.1
2022-03-14 08:20:27 -07:00
Chuan-kai Lin
401a76f245
Add runner OS release to status report
2022-03-03 13:06:02 -08:00
Chuan-kai Lin
870dbaaebe
Use getRequiredEnvParam()
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2022-03-02 16:23:13 -08:00
Chuan-kai Lin
3615d8ac45
Add runner OS and arch to status report
2022-03-02 10:57:12 -08:00
Andrew Eisenberg
a92e8775d8
Use the checkout_path for getting the commit oid
...
This commit also adds a new integration check to verify this.
When running in test mode, payloads will not be uploaded. Instead, they
will be saved to disk so that they can be inspected later.
2022-03-01 12:40:52 -08:00
Andrew Eisenberg
3d93bb2ac9
Add UserError
...
This commit adds a `UserError` class that should be thrown when the
cause of an error is fundamentally from user configuration.
When sending status reports, avoid sending a `failure` for `UserError`s.
This will prevent our diagnostics from pinging us for errors outside of
our control.
2022-02-17 11:47:31 -08:00
Thomas Horstmeyer
9b14aa7c84
Merge branch 'main' into use-better-base-sha
2022-02-04 12:04:41 +00:00
Thomas Horstmeyer
3469c69bba
Merge branch 'main' into use-better-base-sha
2022-02-02 13:52:13 +00:00
Arthur Baars
d57c2761c9
Fix typo in error message
2022-02-02 13:51:48 +01:00
Andrew Eisenberg
13f97c81fe
Merge branch 'aeisenberg/permissions' into add-ref-input
2022-02-01 10:31:14 -08:00
Andrew Eisenberg
36419a79c1
Avoid sending status reports in test mode
2022-02-01 10:12:35 -08:00
Thomas Horstmeyer
ec0b3ae7ff
remove some debug info
2022-02-01 15:39:11 +00:00
Thomas Horstmeyer
e836f97769
Detect merge base as base_sha for upload
2022-02-01 15:38:43 +00:00
Alex Croteau
1eaaf07b91
Adds check on inputs and compiled files
2022-01-31 20:06:17 -05:00