Angela P Wen
24ca6b0400
Send tools telemetry to init status report ( #1497 )
...
Co-authored-by: Henry Mercer <henry.mercer@me.com >
2023-01-25 11:09:18 -08:00
Henry Mercer
a58e90a9da
Merge pull request #1508 from github/henrymercer/default-version-fallback
...
Fall back to the `defaults.json` CLI version if feature flags misconfigured
2023-01-24 20:01:47 +00:00
Henry Mercer
5d931ea2a2
Fall back to the default.json CLI version if feature flags misconfigured
2023-01-23 20:00:44 +00:00
Henry Mercer
ebdd5a069f
Remove perf_hooks Node 12 comment
...
We don't need the import for Node 12 compat, but we do need it to make
the file compile.
2023-01-23 19:16:03 +00:00
Henry Mercer
d37dce28f6
Bump default CodeQL version to 2.12.1
2023-01-23 11:25:09 +00:00
Henry Mercer
54f4ea7a62
Merge branch 'main' into henrymercer/no-cache-nightlies
2023-01-20 17:35:04 +00:00
Henry Mercer
8e4a1d6e60
Merge branch 'main' into henrymercer/avoid-waiting-for-timeout
2023-01-20 16:29:49 +00:00
Henry Mercer
291cc75959
Add test case
2023-01-20 15:30:57 +00:00
Henry Mercer
2014c859f1
Increase strictness of tool caching threshold to avoid caching nightlies
2023-01-20 15:23:27 +00:00
Henry Mercer
4beb39593b
Explain why we're using --format=json to get the extractor path
2023-01-20 15:01:38 +00:00
Henry Mercer
be8f7b01a2
Add types for package.json via @schemastore/package
2023-01-20 15:01:35 +00:00
Henry Mercer
1b508953b4
Remove checkActionVersion
...
This is no longer needed now that we only release v2
2023-01-20 15:01:35 +00:00
Henry Mercer
cb9be70046
Install @types/uuid and eliminate a cast
2023-01-20 15:01:35 +00:00
Henry Mercer
85f0d840c9
Use a more Promise-oriented approach for the timeout system
2023-01-19 20:25:55 +00:00
Henry Mercer
b61b299591
Immediately unref timers to avoid waiting for them before exit
2023-01-19 18:09:06 +00:00
Henry Mercer
ba93815e25
Merge branch 'main' into henrymercer/upgrade-typescript
2023-01-19 16:15:51 +00:00
Henry Mercer
9012214c80
Merge branch 'main' into henrymercer/controlled-switchover
2023-01-18 22:38:54 +00:00
Henry Mercer
10695e6a20
Fix linter errors
2023-01-18 21:00:05 +00:00
Henry Mercer
5f644f971e
Upgrade TypeScript to 9.2.0
2023-01-18 20:59:57 +00:00
Henry Mercer
597c204127
Merge pull request #1481 from github/henrymercer/discontinue-v1
...
Update deprecation notice to state that CodeQL Action v1 is discontinued
2023-01-18 17:24:19 +00:00
Henry Mercer
8a4abfd10a
Support cli-version-x.y.z-pre.txt marker files
2023-01-18 15:55:23 +00:00
Henry Mercer
5f1362dd53
Merge branch 'main' into henrymercer/controlled-switchover
2023-01-18 15:37:28 +00:00
Andrew Eisenberg
e0fd640b0c
Merge pull request #1487 from github/aeisenberg/queries-check
...
Fix a bug in cli config parsing
2023-01-18 07:29:34 -08:00
Henry Mercer
d731c012c4
Merge pull request #1486 from github/update-supported-enterprise-server-versions
...
Update supported GitHub Enterprise Server versions.
2023-01-18 12:57:55 +00:00
Henry Mercer
6dfc772b5f
Add link to new changelog post
2023-01-18 12:42:11 +00:00
Henry Mercer
60e58b4a21
Merge branch 'main' into henrymercer/discontinue-v1
2023-01-18 12:19:49 +00:00
Andrew Eisenberg
9b1206e898
Fix a bug in cli config parsing
...
When the config specifies queries in external repositories and no other
queries and cli config parsing is enabled, the analyze job is not able
to find any queries to run and it fails. This PR fixes the problem.
Also add some logging statements when writing a copy of the user config
file.
2023-01-17 20:59:36 -08:00
GitHub
e199504667
Update supported GitHub Enterprise Server versions.
2023-01-18 00:12:15 +00:00
Andrew Eisenberg
e6e3bf4923
Update src/actions-util.ts
...
Co-authored-by: Angela P Wen <angelapwen@github.com >
2023-01-17 15:53:14 -08:00
Andrew Eisenberg
b625b628b7
Hide error message and stack for non-error
...
Avoid printing the error message and stack when we fail to find the
commit. This will happen in several non-error states (e.g.,
when there is no repository checked out at the CWD). Move the
error message to a debug message so that it is still available
if someone really wants to see it.
2023-01-17 15:00:24 -08:00
Henry Mercer
4b40a3a20e
Add a notice that CodeQL Action v1 is discontinued
2023-01-16 17:56:31 +00:00
Henry Mercer
b660a383cf
Address review comments
2023-01-16 10:14:35 +00:00
Henry Mercer
115587a52c
Merge branch 'main' into henrymercer/controlled-switchover
2023-01-16 10:10:15 +00:00
Henry Mercer
12998b7ba3
Convert logger call to debug
2023-01-13 16:18:46 +00:00
Rasmus Wriedt Larsen
4bd9723e2b
npm run build
2023-01-13 11:26:22 +01:00
Henry Mercer
0be20e5ce1
Use the CLI version when caching the bundle in telemetry too
2023-01-12 21:09:09 +00:00
Henry Mercer
33206d299e
Include the bundle version in the toolcache version number
...
This gives us an easy cache hit when requesting the same tools URL.
2023-01-12 20:56:31 +00:00
Henry Mercer
c2e39e078f
Cache explicitly requested bundles with their URL if possible
2023-01-12 20:44:05 +00:00
Henry Mercer
31c7ce1ce4
Add doc describing CLI version marker files
2023-01-12 15:51:12 +00:00
Henry Mercer
a89ad76881
Expand note about defaults.json compatibility
...
In the future we might convert the file to JSON with comments, or add
this note to a JSON schema.
2023-01-12 15:46:12 +00:00
Henry Mercer
1eeb9df353
Remove dead code
2023-01-12 15:41:17 +00:00
Henry Mercer
648838c4a0
Allow using a x.y.z-yyyymmdd toolcache version for CLI x.y.z.
2023-01-12 15:41:07 +00:00
Henry Mercer
e8c12e1f7d
Add a debug log for the feature flag API response
2023-01-11 19:10:22 +00:00
Henry Mercer
2f7b9a1280
Differentiate setupCodeql.setupCodeQL from codeql.setupCodeQL
2023-01-11 19:06:50 +00:00
Henry Mercer
23d151db1c
Add test for using default version with no requested URL on Dotcom
2023-01-11 19:06:50 +00:00
Henry Mercer
c3be36f5cb
Use new default version to set up CodeQL
2023-01-11 19:06:50 +00:00
Henry Mercer
bd2f52fcef
Move CodeQL setup to its own file
2023-01-11 19:06:50 +00:00
Henry Mercer
a76fe4f9bd
Enable mapping from CLI version to bundle tag name
2023-01-11 19:06:50 +00:00
Henry Mercer
a6dff04fe1
Ignore default version flags with invalid version numbers
2023-01-11 19:06:49 +00:00
Henry Mercer
cdb90196f2
Support determining Dotcom CLI version from feature flags
2023-01-11 18:40:47 +00:00