Angela P Wen
1515e2bb20
Refactor configuration errors ( #2105 )
...
Refactor the existing classes of configuration errors into their own file; consolidate the place we check for configuration errors into `codeql.ts`, where the actual command invocations happen.
Also, rename the `UserError` type to `ConfigurationError` to standardize on a single term.
2024-02-08 17:20:03 +00:00
Henry Mercer
415881f4cf
Remove code specific to GitHub AE
2024-01-08 13:28:39 +00:00
Henry Mercer
1d367b0bec
Improve error categorizations
2023-12-01 17:54:38 +00:00
dependabot[bot]
80150c2141
Bump the npm group with 12 updates ( #2003 )
...
* Bump the npm group with 12 updates
Bumps the npm group with 12 updates:
| Package | From | To |
| --- | --- | --- |
| [@octokit/types](https://github.com/octokit/types.ts ) | `12.1.1` | `12.3.0` |
| [@types/uuid](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/uuid ) | `9.0.6` | `9.0.7` |
| [@types/adm-zip](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/adm-zip ) | `0.5.3` | `0.5.4` |
| [@types/js-yaml](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/js-yaml ) | `4.0.8` | `4.0.9` |
| [@types/semver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/semver ) | `7.5.4` | `7.5.5` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) | `6.9.1` | `6.12.0` |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) | `6.9.1` | `6.12.0` |
| [eslint](https://github.com/eslint/eslint ) | `8.52.0` | `8.54.0` |
| [nock](https://github.com/nock/nock ) | `13.3.7` | `13.3.8` |
| [sinon](https://github.com/sinonjs/sinon ) | `17.0.0` | `17.0.1` |
| [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon ) | `10.0.20` | `17.0.1` |
| [typescript](https://github.com/Microsoft/TypeScript ) | `5.2.2` | `5.3.2` |
Updates `@octokit/types` from 12.1.1 to 12.3.0
- [Release notes](https://github.com/octokit/types.ts/releases )
- [Commits](https://github.com/octokit/types.ts/compare/v12.1.1...v12.3.0 )
Updates `@types/uuid` from 9.0.6 to 9.0.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/uuid )
Updates `@types/adm-zip` from 0.5.3 to 0.5.4
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/adm-zip )
Updates `@types/js-yaml` from 4.0.8 to 4.0.9
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/js-yaml )
Updates `@types/semver` from 7.5.4 to 7.5.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/semver )
Updates `@typescript-eslint/eslint-plugin` from 6.9.1 to 6.12.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.12.0/packages/eslint-plugin )
Updates `@typescript-eslint/parser` from 6.9.1 to 6.12.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.12.0/packages/parser )
Updates `eslint` from 8.52.0 to 8.54.0
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v8.52.0...v8.54.0 )
Updates `nock` from 13.3.7 to 13.3.8
- [Release notes](https://github.com/nock/nock/releases )
- [Changelog](https://github.com/nock/nock/blob/main/CHANGELOG.md )
- [Commits](https://github.com/nock/nock/compare/v13.3.7...v13.3.8 )
Updates `sinon` from 17.0.0 to 17.0.1
- [Release notes](https://github.com/sinonjs/sinon/releases )
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md )
- [Commits](https://github.com/sinonjs/sinon/compare/v17.0.0...v17.0.1 )
Updates `@types/sinon` from 10.0.20 to 17.0.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon )
Updates `typescript` from 5.2.2 to 5.3.2
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/commits )
---
updated-dependencies:
- dependency-name: "@octokit/types"
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: "@types/uuid"
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: "@types/adm-zip"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: "@types/js-yaml"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: "@types/semver"
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: "@typescript-eslint/eslint-plugin"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: "@typescript-eslint/parser"
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: eslint
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
- dependency-name: nock
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: sinon
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: npm
- dependency-name: "@types/sinon"
dependency-type: direct:development
update-type: version-update:semver-major
dependency-group: npm
- dependency-name: typescript
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: npm
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update checked-in dependencies
* Rebuild
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-11-20 14:35:28 -08:00
Henry Mercer
bd32fab74f
Provide token when downloading from GHES API
2023-10-12 17:26:42 +01:00
hoshino tsuyoshi
3f7850a179
Improve downloading log message ( #1920 )
...
Previously, a trailing `.` character was recognized as part of the URL in GitHub Actions log output. We add an additional space before it to distinguish.
2023-10-05 21:21:52 +00:00
Henry Mercer
76584bd0a0
Simplify toolcache version number for semantically versioned bundles
2023-08-10 14:36:04 +01:00
Henry Mercer
61cdd2503b
Factor out common code for cleaning up bundle artifacts
2023-08-01 19:47:57 +01:00
Henry Mercer
92c848eb82
Improve variable naming
2023-08-01 19:21:17 +01:00
Henry Mercer
f93fb8df6e
Clean up non-toolcached bundle
2023-08-01 18:50:45 +01:00
Henry Mercer
38adb40e7a
Delete bundle archive after extracting it
2023-08-01 17:49:21 +01:00
Henry Mercer
5658fd1df2
Fix dependency cycle between trap-caching and init
2023-07-19 17:30:33 +01:00
Henry Mercer
c1f49580cf
Fix dependency incompatibilities
2023-07-13 11:20:39 +01:00
Henry Mercer
dc0234b48c
Remove redundant checks
2023-07-07 15:32:20 +01:00
Henry Mercer
bec18d1625
Remove fallback logic for mapping default CLI version to GitHub Release
...
The default version feature flags will now always point to a CLI version
with a semantically versioned bundle, so we can find the GitHub
Release directly from the CLI version.
2023-07-07 15:15:57 +01:00
Henry Mercer
6418c5d819
Skip an API call when downloading a CodeQL version with a semver bundle
...
Previously, we made an API call to look up the CLI version to release
mapping when the default CLI version was requested on Dotcom and that
CLI wasn't in the toolcache.
Now we compute the tag name directly for semver bundles.
2023-07-07 10:58:57 +01:00
Henry Mercer
2bf10dc4b9
Extract semantic CLI version from URL when requesting specific tools
2023-05-16 14:47:32 +01:00
Henry Mercer
e5c2f32a9f
Consistently wrap errors
2023-04-06 17:04:21 +01:00
Henry Mercer
db534af2ae
Remove feature flags for bypassing the toolcache
...
- We can now use the default bundle version feature flags to remediate a
bad bundle update.
- Controlled switchover ensures that a repo consistently gets the same
bundle version, so we no longer have alert churn concerns with Kotlin
and Swift.
2023-02-08 15:20:51 +00:00
Henry Mercer
2b674f7ab9
Fix toolcache behavior when downloading bundle from another repo
2023-02-06 16:25:07 +00:00
Henry Mercer
d3f2b2e6d2
Warn when multiple bundles for a single CLI are found in the toolcache
2023-02-06 12:28:33 +00:00
Henry Mercer
d49282c3b5
Rename `forceLatest` to `forceShippedTools`
2023-02-06 11:57:48 +00:00
Henry Mercer
f140af5e28
Refactor setting up CodeQL to handle bundle URLs without tags
2023-02-03 19:15:06 +00:00
Arthur Baars
2fed02cbe2
Supply authorization parameter to toolcache.downloadTool()
...
Previously we supplied the authorization information via the 'headers'
parameter. This works fine, except in some cases when the request is
retried.
2023-02-03 14:56:00 +01:00
Angela P Wen
4664f39699
Ensure that `tools_download_duration_ms` is int ( #1513 )
2023-01-27 09:03:57 +00:00
Henry Mercer
75ae065ae6
Fix computation of fallback version
2023-01-26 11:49:51 +00:00
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
2014c859f1
Increase strictness of tool caching threshold to avoid caching nightlies
2023-01-20 15:23:27 +00:00
Henry Mercer
cb9be70046
Install `@types/uuid` and eliminate a cast
2023-01-20 15:01:35 +00:00
Henry Mercer
ba93815e25
Merge branch 'main' into henrymercer/upgrade-typescript
2023-01-19 16:15:51 +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
b660a383cf
Address review comments
2023-01-16 10:14:35 +00: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
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
2f7b9a1280
Differentiate `setupCodeql.setupCodeQL` from `codeql.setupCodeQL`
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