Henry Mercer
a22989dcd4
Mark commit not found as a user error too
2024-04-15 13:14:52 +01:00
Henry Mercer
fa75c144b4
Capture rate limit and ref not existing config errors
2024-04-12 18:25:10 +01:00
Henry Mercer
415881f4cf
Remove code specific to GitHub AE
2024-01-08 13:28:39 +00:00
Henry Mercer
c6d284324b
Pull out a dedicated status report file
2023-08-07 16:13:59 +01:00
Henry Mercer
2637069a45
Resolve dependency cycles between actions-util and workflow
2023-07-19 17:21:33 +01:00
Henry Mercer
0bc4788cf7
Resolve dependency cycle between api-client and actions-util
2023-07-19 17:01:05 +01:00
Henry Mercer
d577d6f6b1
Resolve dependency cycle between util and API client
2023-07-19 16:40:31 +01:00
Henry Mercer
c1f49580cf
Fix dependency incompatibilities
2023-07-13 11:20:39 +01:00
Henry Mercer
be8f7b01a2
Add types for package.json via @schemastore/package
2023-01-20 15:01:35 +00:00
Henry Mercer
5f644f971e
Upgrade TypeScript to 9.2.0
2023-01-18 20:59:57 +00:00
Henry Mercer
9df773d1a3
Remove unneeded apiDetails input to getApiClient
2022-11-14 19:55:30 +00:00
Henry Mercer
dac8912e9f
Remove deriveApiUrl function only used by runner
2022-11-14 18:59:39 +00:00
Henry Mercer
b498c79130
Remove concept of Actions / runner mode
2022-11-14 16:37:48 +00:00
Henry Mercer
fc2f344141
Reuse getApiDetails code
2022-09-02 19:59:18 +01:00
Chris Gavin
7c6fa5ce8a
Remove an unneeded if.
...
Co-authored-by: Andrew Eisenberg <aeisenberg@github.com >
2022-08-11 17:10:50 +01:00
Chris Gavin
bbdc9efa94
Use the API URL from the environment if it is present.
2022-08-11 08:38:11 +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
Andrew Eisenberg
40568daca8
Fix compile errors introduced by typescript 4.4.2
...
4.4.2 introduces a breaking change that the variable in a catch clause
is now `unknown` type. So, we need to cast the `e`, `err`, or `error`
variables to type `Error`.
2021-09-10 14:06:27 -07:00
Edoardo Pirovano
d9849b8ca1
Rebuild after TypeScript version bump
2021-07-27 17:59:59 +01:00
Chris Gavin
41dff7fce3
Add back retrying.
2021-06-04 15:51:51 +01:00
Andrew Eisenberg
2c2ebdc5c5
Remove local environment running
...
This is a functionality that never worked perfectly and hasn't been
used for a while.
This allows developers to run the action on their local machine, but
the run was always flaky and never 100% mirrored what was happening on
the actions runner.
2021-06-02 11:26:11 -07:00
Andrew Eisenberg
3708898bf2
Add environment variables to signal feature and version to the CLI
...
This PR ensures environment variables are set before any invocation of
the CLI. Here is a list of vars that are set:
https://github.com/github/codeql-coreql-team/issues/1124#issuecomment-852463521
This ensures the CLI knows the features and versions of the containing
actions/runner.
Additionally:
- Fix the user agent so that it more closely aligns with user agent
spec
- Refactor environment variable initialization so that it all happens in
one place and call.
- Move Mode, getRequiredEnvParam, setMode, getMode out of actions-util
and into util. actions-util is meant for utils only called by the
action, not the runner.
The `prepareLocalRunEnvironment()` method is most likely deprecated and
should be removed. I originally added it because I had a way of working
where I would run the action from my local machine to test out changes,
but this was always a little flaky. So, I no longer use this way of
working. I will probably remove it soon.
2021-06-02 11:06:02 -07:00
Andrew Eisenberg
47588796b4
Send the version and mode with the user agent
...
This commit changes the way the action determines if running in action
or runner mode. There is now an environment variable that is set at the
beginning of the process and elsewhere in the process, we can check to
see if the variable is set.
2021-05-31 09:03:29 -07:00
Andrew Eisenberg
534192fa05
Use externalRepoAuth when getting a remote config
...
This allows users to specify a different token for retrieving the
codeql config from a different repository.
Fixes https://github.com/github/advanced-security-field/issues/185
2021-04-09 15:00:57 -07:00
Robin Neatherway
dff118f7ad
Use version information to construct payload
2020-11-30 16:45:18 +00:00
Robert
81a21bfa1e
Request meta endpoint at the start of execution
2020-11-26 17:54:46 +00:00
Sam Partington
3ee4739b13
Make anonymous objects into variables for readability
2020-11-24 11:23:53 +00:00
Sam Partington
20567b5888
Introduce parameter object for API params that travel together
2020-11-23 14:39:01 +00:00
Eric Cornelissen
6aaf0483f0
Merge branch 'main' into fix-typos
2020-11-20 14:32:12 +01:00
Eric Cornelissen
5416d4f3b5
Run npm run build
2020-11-20 11:35:59 +01:00
Eric Cornelissen
847f4ef293
Run npm run build
2020-11-19 23:03:45 +01:00
Chris Gavin
b16110e60e
Log the version warning a second time if a request fails unexpectedly.
2020-11-03 12:57:15 +00:00
Chris Gavin
1a4385d516
Only log the version warning once on Actions even if the Action is invoked multiple times.
2020-11-02 09:01:36 +00:00
Chris Gavin
865b4bd832
Pass a logger in to getApiClient() rather than constructing one there.
2020-11-02 08:53:25 +00:00
Chris Gavin
1f7bae7ab8
Use an undefined check rather than hasOwnProperty.
2020-11-02 08:47:11 +00:00
Chris Gavin
1220ae5bfd
Log a warning if the API version is not supported.
2020-10-30 12:20:06 +00:00
Chris Raynor
122c9b7f24
Switching to import/order instead of sort-imports
2020-10-01 11:03:46 +01:00
Chris Raynor
228546a1e5
Resolve violations of sort-imports lint
...
Resolves #206
2020-09-29 14:43:37 +01:00
Chris Gavin
31c2eca167
Fix retrying uploads by using Octokit retry plugin.
2020-09-21 19:15:19 +01:00
Chris Gavin
cc0eb452c7
Use getOctokit(...) when getting the GitHub API client.
2020-09-21 15:21:05 +01:00
Chris Gavin
9ed519fa12
Update to the latest version of @actions/github.
2020-09-18 16:06:20 +01:00
Robert Brignull
c1cee53da5
Add getOptionalInput and getRequiredInput
2020-09-15 18:47:50 +01:00
Robert Brignull
121fd331cd
Introduce actions-util.ts
2020-09-15 14:01:21 +01:00
Chris Raynor
a184d50a26
Running lint-fix
2020-09-14 10:44:43 +01:00
Robert Brignull
3dfaa88a1d
Remove process of auth
2020-08-27 16:45:28 +01:00
Robert Brignull
f5d645fc73
Fix use of wrong URL
2020-08-26 16:20:36 +01:00
Robert Brignull
217483dfd6
Convert rest of the actions
2020-08-26 16:20:36 +01:00
Robert Brignull
cf08f5a9cd
remove unused arguments
2020-08-11 13:56:23 +01:00