Compare commits

...

51 Commits

Author SHA1 Message Date
dependabot[bot] 17b39b2181 chore(deps-dev): bump vitest from 5.0.5 to 5.1.0 in the actions group (#311)
Bumps the actions group with 1 update: [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `vitest` from 5.0.5 to 5.1.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.1.0/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 5.1.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-09 12:43:44 -08:00
dependabot[bot] 2f78f07497 chore(deps): bump the actions group in /.github/workflows with 2 updates (#312)
Bumps the actions group in /.github/workflows with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.39.1 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...33d7b85da1a04171e211befe2c739303b9a4c066)

Updates `github/codeql-action/analyze` from 4.39.1 to 4.39.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9b3254085494b55a0f7c4c2b3d2d52cc712ce370...33d7b85da1a04171e211befe2c739303b9a4c066)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-09 12:39:14 -08:00
Alexis Couvreur 5cbd56a156 feat: add version-file input to read kubectl version from .tool-versions (#261)
* feat: add version-file input to read kubectl version from .tool-versions

Adds a `version-file` input that reads the kubectl version from an
asdf/mise `.tool-versions` file. A specific `version` input takes
precedence (with a warning); the default `latest` lets the file decide.
Values from the file go through the same latest / major.minor /
major.minor.patch resolution and validation as the `version` input.
The file must be a regular, non-symlinked file of at most 64 KiB.

Closes #259

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: address version-file review feedback

- Report a missing version-file with a clear error instead of a raw ENOENT
- Document that the first kubectl entry wins, and the regular-file / 64 KiB limits
- Assert that an explicit version skips reading the version-file entirely

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-09 12:38:30 -08:00
dependabot[bot] 055d6cc5ff chore(deps-dev): bump the actions group across 1 directory with 3 updates (#310)
Bumps the actions group with 3 updates in the / directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [prettier](https://github.com/prettier/prettier) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 26.6.5 to 26.6.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.9.9 to 3.9.10
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.9...3.9.10)

Updates `vitest` from 5.0.3 to 5.0.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.5/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: prettier
  dependency-version: 3.9.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 5.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 09:28:31 +13:00
dependabot[bot] ea19a5a5af chore(deps): bump undici from 6.29.0 to 6.29.1 (#309)
Bumps [undici](https://github.com/nodejs/undici) from 6.29.0 to 6.29.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.29.0...v6.29.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.29.1
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 09:28:08 +13:00
dependabot[bot] 70dd817170 chore(deps): bump the actions group across 1 directory with 3 updates (#308)
Bumps the actions group with 3 updates in the /.github/workflows directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [actions/setup-python](https://github.com/actions/setup-python).


Updates `github/codeql-action/init` from 4.38.3 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/24c54180a607b1449ed407dd24f251e4e9147c8d...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `github/codeql-action/analyze` from 4.38.3 to 4.39.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/24c54180a607b1449ed407dd24f251e4e9147c8d...9b3254085494b55a0f7c4c2b3d2d52cc712ce370)

Updates `actions/setup-python` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/5fda3b95a4ea91299a34e894583c3862153e4b97...6d4fd22b20465ccc0f7354476588e8df7c9ca0e0)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.39.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-03 09:26:56 +13:00
dependabot[bot] 91c7e1a013 chore(deps): bump the actions group in /.github/workflows with 3 updates (#304)
Bumps the actions group in /.github/workflows with 3 updates: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [actions/setup-node](https://github.com/actions/setup-node).


Updates `github/codeql-action/init` from 4.38.2 to 4.38.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d)

Updates `github/codeql-action/analyze` from 4.38.2 to 4.38.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2...24c54180a607b1449ed407dd24f251e4e9147c8d)

Updates `actions/setup-node` from 7.0.0 to 7.1.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/820762786026740c76f36085b0efc47a31fe5020...949feb2413d6458794dcd2491c4babbbce0c15c1)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.38.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.38.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: actions/setup-node
  dependency-version: 7.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-13 12:09:44 -07:00
dependabot[bot] e1ae434a6a chore(deps-dev): bump the actions group with 3 updates (#303)
Bumps the actions group with 3 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [prettier](https://github.com/prettier/prettier) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 26.6.1 to 26.6.5
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.9.8 to 3.9.9
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.8...3.9.9)

Updates `vitest` from 5.0.1 to 5.0.3
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.3/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: prettier
  dependency-version: 3.9.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 5.0.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-13 12:08:39 -07:00
dependabot[bot] e122dbb2d1 chore(deps-dev): bump source-map-js from 1.2.1 to 1.2.2 (#302)
Bumps [source-map-js](https://github.com/7rulnik/source-map-js) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/7rulnik/source-map-js/releases)
- [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2)

---
updated-dependencies:
- dependency-name: source-map-js
  dependency-version: 1.2.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 17:08:07 -04:00
dependabot[bot] a29a84f479 Bump undici from 6.28.0 to 6.29.0 (#300)
Bumps [undici](https://github.com/nodejs/undici) from 6.28.0 to 6.29.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.28.0...v6.29.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.29.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 17:07:50 -04:00
dependabot[bot] ce38e9c621 Bump the actions group across 1 directory with 3 updates (#298)
Bumps the actions group with 3 updates in the / directory: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [prettier](https://github.com/prettier/prettier) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 26.4.1 to 26.6.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.9.6 to 3.9.8
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.6...3.9.8)

Updates `vitest` from 5.0.0 to 5.0.1
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.1/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.6.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: prettier
  dependency-version: 3.9.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 5.0.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 17:07:31 -04:00
David Gamero 8641ff5d07 release: prepare v5.2.0 (#301)
* release: prepare v5.2.0

* fix: preserve locked dependency versions
2026-10-06 12:39:45 -07:00
dependabot[bot] 3d292a7757 Bump the actions group across 1 directory with 3 updates (#299)
Bumps the actions group with 3 updates in the /.github/workflows directory: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action) and [Azure/action-release-workflows/.github/workflows/release_js_project.yaml](https://github.com/azure/action-release-workflows).


Updates `github/codeql-action/init` from 4.37.9 to 4.38.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2)

Updates `github/codeql-action/analyze` from 4.37.9 to 4.38.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/cdf488f595d80d6e07e03d4674febd5ab45fa938...2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2)

Updates `Azure/action-release-workflows/.github/workflows/release_js_project.yaml` from 1.1.0 to 1.2.0
- [Release notes](https://github.com/azure/action-release-workflows/releases)
- [Changelog](https://github.com/Azure/action-release-workflows/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/action-release-workflows/compare/2ff084415c5af591fd13d95ddbfc4cdb5ed2012e...a391b701462581f586d0e8a68e60b04aa47dc4a9)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.38.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.38.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: Azure/action-release-workflows/.github/workflows/release_js_project.yaml
  dependency-version: 1.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-10-06 07:23:39 +13:00
dependabot[bot] c269e61060 Bump the actions group with 2 updates (#294)
Bumps the actions group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 26.2.0 to 26.4.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `vitest` from 4.1.11 to 5.0.0
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v5.0.0/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.4.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-10 10:50:13 -07:00
dependabot[bot] 11acd8e20b Bump the actions group in /.github/workflows with 2 updates (#295)
Bumps the actions group in /.github/workflows with 2 updates: [github/codeql-action/init](https://github.com/github/codeql-action) and [github/codeql-action/analyze](https://github.com/github/codeql-action).


Updates `github/codeql-action/init` from 4.37.4 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...cdf488f595d80d6e07e03d4674febd5ab45fa938)

Updates `github/codeql-action/analyze` from 4.37.4 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/f205ea1c3313d32999d8d6a48b4f6530d4437b38...cdf488f595d80d6e07e03d4674febd5ab45fa938)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-10 10:50:01 -07:00
dependabot[bot] 645066cbc7 Bump postcss from 8.5.19 to 8.5.26 (#290)
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.19 to 8.5.26.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.19...8.5.26)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.26
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-04 12:58:03 -07:00
dependabot[bot] 97176cf91e Bump undici from 6.27.0 to 6.28.0 (#289)
Bumps [undici](https://github.com/nodejs/undici) from 6.27.0 to 6.28.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.27.0...v6.28.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.28.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-04 12:57:21 -07:00
dependabot[bot] ee889ef4b3 Bump the actions group across 1 directory with 4 updates (#293)
Bumps the actions group with 4 updates in the / directory: [@actions/http-client](https://github.com/actions/toolkit/tree/HEAD/packages/http-client), [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [esbuild](https://github.com/evanw/esbuild) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@actions/http-client` from 4.0.0 to 4.0.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/http-client/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/http-client)

Updates `@types/node` from 26.1.1 to 26.2.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `esbuild` from 0.28.1 to 0.28.2
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.28.1...v0.28.2)

Updates `vitest` from 4.1.10 to 4.1.11
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.11/packages/vitest)

---
updated-dependencies:
- dependency-name: "@actions/http-client"
  dependency-version: 4.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: "@types/node"
  dependency-version: 26.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: esbuild
  dependency-version: 0.28.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 4.1.11
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-04 12:56:18 -07:00
dependabot[bot] fc0afe1146 Bump the actions group in /.github/workflows with 4 updates (#287)
Bumps the actions group in /.github/workflows with 4 updates: [github/codeql-action/init](https://github.com/github/codeql-action), [github/codeql-action/analyze](https://github.com/github/codeql-action), [actions/stale](https://github.com/actions/stale) and [Azure/action-release-workflows/.github/workflows/release_js_project.yaml](https://github.com/azure/action-release-workflows).


Updates `github/codeql-action/init` from 4.37.3 to 4.37.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81...f205ea1c3313d32999d8d6a48b4f6530d4437b38)

Updates `github/codeql-action/analyze` from 4.37.3 to 4.37.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81...f205ea1c3313d32999d8d6a48b4f6530d4437b38)

Updates `actions/stale` from 10.4.0 to 11.0.0
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/1e223db275d687790206a7acac4d1a11bd6fe629...4391f3da665fdf50b6810c1a66712fb9ba21aa93)

Updates `Azure/action-release-workflows/.github/workflows/release_js_project.yaml` from 1.0.3 to 1.1.0
- [Release notes](https://github.com/azure/action-release-workflows/releases)
- [Changelog](https://github.com/Azure/action-release-workflows/blob/main/CHANGELOG.md)
- [Commits](https://github.com/azure/action-release-workflows/compare/3c677ba5ab58f5c5c1a6f0cfb176b333b1f27405...2ff084415c5af591fd13d95ddbfc4cdb5ed2012e)

---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: actions/stale
  dependency-version: 11.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: Azure/action-release-workflows/.github/workflows/release_js_project.yaml
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-04 12:56:00 -07:00
dependabot[bot] ea75f07c99 Bump the actions group across 1 directory with 5 updates (#285)
Bumps the actions group with 5 updates in the /.github/workflows directory:

| Package | From | To |
| --- | --- | --- |
| [actions/checkout](https://github.com/actions/checkout) | `7.0.0` | `7.0.1` |
| [github/codeql-action/init](https://github.com/github/codeql-action) | `4.37.0` | `4.37.3` |
| [github/codeql-action/analyze](https://github.com/github/codeql-action) | `4.37.0` | `4.37.3` |
| [actions/setup-python](https://github.com/actions/setup-python) | `6.3.0` | `7.0.0` |
| [actions/setup-node](https://github.com/actions/setup-node) | `6.4.0` | `7.0.0` |



Updates `actions/checkout` from 7.0.0 to 7.0.1
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1)

Updates `github/codeql-action/init` from 4.37.0 to 4.37.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/99df26d4f13ea111d4ec1a7dddef6063f76b97e9...e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81)

Updates `github/codeql-action/analyze` from 4.37.0 to 4.37.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/99df26d4f13ea111d4ec1a7dddef6063f76b97e9...e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81)

Updates `actions/setup-python` from 6.3.0 to 7.0.0
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/ece7cb06caefa5fff74198d8649806c4678c61a1...5fda3b95a4ea91299a34e894583c3862153e4b97)

Updates `actions/setup-node` from 6.4.0 to 7.0.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e...820762786026740c76f36085b0efc47a31fe5020)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: actions/setup-node
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-30 11:41:00 -04:00
dependabot[bot] e1bc80e7a0 Bump prettier from 3.9.5 to 3.9.6 in the actions group (#284)
Bumps the actions group with 1 update: [prettier](https://github.com/prettier/prettier).


Updates `prettier` from 3.9.5 to 3.9.6
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.5...3.9.6)

---
updated-dependencies:
- dependency-name: prettier
  dependency-version: 3.9.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-29 16:25:43 -04:00
benjamin 1dc2539e3a feat: add downloadBaseURL, checksum, and downloadAuthToken inputs (closes Azure#206) (#268) 2026-07-29 16:03:04 -04:00
dependabot[bot] de2a114b01 Bump the actions group across 1 directory with 4 updates (#281)
---
updated-dependencies:
- dependency-name: github/codeql-action/init
  dependency-version: 4.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: github/codeql-action/analyze
  dependency-version: 4.37.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/stale
  dependency-version: 10.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/setup-python
  dependency-version: 6.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 16:44:08 -04:00
dependabot[bot] 3ed0a10dfe Bump the actions group across 1 directory with 4 updates (#282)
---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.1.1
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: prettier
  dependency-version: 3.9.5
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: typescript
  dependency-version: 7.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 4.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-16 12:59:07 -04:00
dependabot[bot] e1c6f27a67 Bump undici from 6.25.0 to 6.27.0 (#276)
Bumps [undici](https://github.com/nodejs/undici) from 6.25.0 to 6.27.0.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v6.25.0...v6.27.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 6.27.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-23 10:47:34 +12:00
dependabot[bot] f2768a48a3 Bump @types/node from 25.9.3 to 26.0.0 in the actions group (#274)
Bumps the actions group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 25.9.3 to 26.0.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-22 13:55:23 -07:00
dependabot[bot] 6506a34208 Bump actions/checkout in /.github/workflows in the actions group (#275)
Bumps the actions group in /.github/workflows with 1 update: [actions/checkout](https://github.com/actions/checkout).


Updates `actions/checkout` from 6.0.3 to 7.0.0
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/df4cb1c069e1874edd31b4311f1884172cec0e10...9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-22 13:55:17 -07:00
dependabot[bot] 354d45bbe3 Bump the actions group with 3 updates (#273)
Bumps the actions group with 3 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [prettier](https://github.com/prettier/prettier) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 25.9.2 to 25.9.3
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `prettier` from 3.8.3 to 3.8.4
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.3...3.8.4)

Updates `vitest` from 4.1.8 to 4.1.9
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/HEAD/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.9.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: prettier
  dependency-version: 3.8.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 4.1.9
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-16 13:01:20 -07:00
dependabot[bot] c4a1c8d676 Bump esbuild from 0.28.0 to 0.28.1 (#272)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.28.0 to 0.28.1.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.28.0...v0.28.1)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.28.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-13 13:36:47 +12:00
dependabot[bot] caa02f7efd Bump the actions group in /.github/workflows with 2 updates (#271)
Bumps the actions group in /.github/workflows with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [github/codeql-action](https://github.com/github/codeql-action).


Updates `actions/checkout` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/de0fac2e4500dabe0009e67214ff5f5447ce83dd...df4cb1c069e1874edd31b4311f1884172cec0e10)

Updates `github/codeql-action` from 4.36.0 to 4.36.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/7211b7c8077ea37d8641b6271f6a365a22a5fbfa...8aad20d150bbac5944a9f9d289da16a4b0d87c1e)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: github/codeql-action
  dependency-version: 4.36.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-13 13:34:10 +12:00
dependabot[bot] 5a47230ed6 Bump @types/node from 25.9.1 to 25.9.2 in the actions group (#270)
Bumps the actions group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 25.9.1 to 25.9.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.9.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-13 13:33:45 +12:00
dependabot[bot] 67726af8ae Bump vitest from 4.1.7 to 4.1.8 in the actions group (#269)
Bumps the actions group with 1 update: [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `vitest` from 4.1.7 to 4.1.8
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.8/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 4.1.8
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-04 13:43:21 -07:00
David Gamero f295d40337 chore: pin release workflow to SHA for supply chain safety (#267)
Pin Azure/action-release-workflows to commit SHA instead of mutable v1 tag.
2026-05-27 09:20:50 +12:00
dependabot[bot] 4f39f383be Bump the actions group in /.github/workflows with 2 updates (#266)
Bumps the actions group in /.github/workflows with 2 updates: [github/codeql-action](https://github.com/github/codeql-action) and [actions/stale](https://github.com/actions/stale).


Updates `github/codeql-action` from 4.35.5 to 4.36.0
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/9e0d7b8d25671d64c341c19c0152d693099fb5ba...7211b7c8077ea37d8641b6271f6a365a22a5fbfa)

Updates `actions/stale` from 10.2.0 to 10.3.0
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/stale/compare/b5d41d4e1d5dceea10e7104786b73624c18a190f...eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.36.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: actions/stale
  dependency-version: 10.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-26 18:21:39 +12:00
dependabot[bot] 69b3385703 Bump the actions group with 2 updates (#265)
Bumps the actions group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 25.9.0 to 25.9.1
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `vitest` from 4.1.6 to 4.1.7
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.7/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.9.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 4.1.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-26 18:20:48 +12:00
dependabot[bot] 8756b858da Bump github/codeql-action in /.github/workflows in the actions group (#263)
Bumps the actions group in /.github/workflows with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.35.4 to 4.35.5
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/68bde559dea0fdcac2102bfdf6230c5f70eb485e...9e0d7b8d25671d64c341c19c0152d693099fb5ba)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-19 21:10:49 +12:00
dependabot[bot] fa9776f51d Bump @types/node from 25.6.2 to 25.9.0 in the actions group (#262)
Bumps the actions group with 1 update: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node).


Updates `@types/node` from 25.6.2 to 25.9.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.9.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-19 21:09:54 +12:00
dependabot[bot] 9095542ace Bump the actions group with 2 updates (#257)
Bumps the actions group with 2 updates: [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@types/node` from 25.6.0 to 25.6.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `vitest` from 4.1.5 to 4.1.6
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.6/packages/vitest)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.6.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 4.1.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-12 23:56:08 +12:00
dependabot[bot] 07f8eeedcc Bump github/codeql-action in /.github/workflows in the actions group (#258)
Bumps the actions group in /.github/workflows with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.35.3 to 4.35.4
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/e46ed2cbd01164d986452f91f178727624ae40d7...68bde559dea0fdcac2102bfdf6230c5f70eb485e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-12 23:55:41 +12:00
dependabot[bot] 8bc0ffeb64 Bump the actions group across 1 directory with 2 updates (#254)
Bumps the actions group with 2 updates in the / directory: [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) and [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest).


Updates `@actions/core` from 3.0.0 to 3.0.1
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Updates `vitest` from 4.1.4 to 4.1.5
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.1.5/packages/vitest)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: vitest
  dependency-version: 4.1.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-05 14:23:08 +12:00
dependabot[bot] 2d27fe5be6 Bump postcss from 8.5.9 to 8.5.14 (#256)
Bumps [postcss](https://github.com/postcss/postcss) from 8.5.9 to 8.5.14.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.5.9...8.5.14)

---
updated-dependencies:
- dependency-name: postcss
  dependency-version: 8.5.14
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 13:05:56 -04:00
dependabot[bot] 8cef47c0c0 Bump github/codeql-action in /.github/workflows in the actions group (#255)
Bumps the actions group in /.github/workflows with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.35.2 to 4.35.3
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/95e58e9a2cdfd71adc6e0353d5c52f41a045d225...e46ed2cbd01164d986452f91f178727624ae40d7)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-04 12:49:02 -04:00
dependabot[bot] 0c2720556b Bump the actions group in /.github/workflows with 2 updates (#253)
Bumps the actions group in /.github/workflows with 2 updates: [github/codeql-action](https://github.com/github/codeql-action) and [actions/setup-node](https://github.com/actions/setup-node).


Updates `github/codeql-action` from 4.35.1 to 4.35.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/c10b8064de6f491fea524254123dbe5e09572f13...95e58e9a2cdfd71adc6e0353d5c52f41a045d225)

Updates `actions/setup-node` from 6.3.0 to 6.4.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/53b83947a5a98c8d113130e565377fae1a50d02f...48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: actions/setup-node
  dependency-version: 6.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-21 17:08:48 -04:00
dependabot[bot] a6ad61186f Bump the actions group with 3 updates (#252)
Bumps the actions group with 3 updates: [esbuild](https://github.com/evanw/esbuild), [prettier](https://github.com/prettier/prettier) and [typescript](https://github.com/microsoft/TypeScript).


Updates `esbuild` from 0.27.7 to 0.28.0
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.27.7...v0.28.0)

Updates `prettier` from 3.8.0 to 3.8.3
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.8.0...3.8.3)

Updates `typescript` from 5.9.3 to 6.0.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.9.3...v6.0.3)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.28.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: actions
- dependency-name: prettier
  dependency-version: 3.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-21 17:07:53 -04:00
David Gamero b70bc4f58e fix: add node types to tsconfig for TypeScript 6 compatibility (#251) 2026-04-17 07:01:02 +12:00
David Gamero 6522dcd602 release: prepare v5.1.0 (#249)
* release: prepare v5.1.0 — ESM migration with esbuild/vitest

* sync package-lock.json version to 5.1.0

* add version sync check to pre-commit hook

* regenerate package-lock.json for npm ci compatibility
2026-04-15 09:59:13 +12:00
dependabot[bot] 06b670f700 Bump vite from 8.0.3 to 8.0.5 (#247) 2026-04-07 06:43:17 +12:00
David Gamero 5f8d8195ef Migrate to ESM with esbuild and vitest (#243)
* Migrate to ESM with esbuild, vitest and upgrade @actions/* to ESM-only versions

* fix: update lockfile for npm ci compatibility

---------

Co-authored-by: Suneha Bose <suneha.bose@gmail.com>
2026-04-03 10:48:25 -07:00
dependabot[bot] 08845d9b5a Bump github/codeql-action in /.github/workflows in the actions group (#245)
Bumps the actions group in /.github/workflows with 1 update: [github/codeql-action](https://github.com/github/codeql-action).


Updates `github/codeql-action` from 4.33.0 to 4.35.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/github/codeql-action/compare/b1bff81932f5cdfc8695c7752dcee935dcd061c8...c10b8064de6f491fea524254123dbe5e09572f13)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-version: 4.35.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-31 00:40:30 +13:00
dependabot[bot] f59556b0f1 Bump handlebars from 4.7.8 to 4.7.9 (#244)
Bumps [handlebars](https://github.com/handlebars-lang/handlebars.js) from 4.7.8 to 4.7.9.
- [Release notes](https://github.com/handlebars-lang/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.9/release-notes.md)
- [Commits](https://github.com/handlebars-lang/handlebars.js/compare/v4.7.8...v4.7.9)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-version: 4.7.9
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-29 22:05:44 +13:00
dependabot[bot] 50eb4152fb Bump picomatch (#242)
Bumps  and [picomatch](https://github.com/micromatch/picomatch). These dependencies needed to be updated together.

Updates `picomatch` from 2.3.1 to 2.3.2
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

Updates `picomatch` from 4.0.2 to 4.0.4
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 2.3.2
  dependency-type: indirect
- dependency-name: picomatch
  dependency-version: 4.0.4
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-26 12:38:51 +13:00
20 changed files with 3591 additions and 7384 deletions
+3 -3
View File
@@ -55,11 +55,11 @@ jobs:
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v3.29.5
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
@@ -86,6 +86,6 @@ jobs:
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@b1bff81932f5cdfc8695c7752dcee935dcd061c8 # v3.29.5
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3
with:
category: '/language:${{matrix.language}}'
+2 -2
View File
@@ -8,7 +8,7 @@ jobs:
label-issues:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
name: Setting issue as idle
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -19,7 +19,7 @@ jobs:
operations-per-run: 100
exempt-issue-labels: 'backlog'
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
- uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
name: Setting PR as idle
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
+31 -2
View File
@@ -17,7 +17,7 @@ jobs:
KUBECONFIG: /home/runner/.kube/config
PR_BASE_REF: ${{ github.event.pull_request.base.ref }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
name: Checkout from PR branch
- id: action-npm-build
@@ -31,7 +31,7 @@ jobs:
rm -rf node_modules
fi
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
name: Install Python
with:
python-version: '3.x'
@@ -54,3 +54,32 @@ jobs:
- name: Validate kubectl setup old version
run: python test/validate-kubectl.py 'v1.15.1'
- name: Fetch known SHA256 for v1.30.0 linux/amd64
id: sha
run: |
value=$(curl -fsSL https://dl.k8s.io/release/v1.30.0/bin/linux/amd64/kubectl.sha256)
echo "value=$value" >> "$GITHUB_OUTPUT"
- name: Setup kubectl with valid checksum
uses: ./
with:
version: 'v1.30.0'
checksum: ${{ steps.sha.outputs.value }}
- name: Validate kubectl setup with checksum
run: python test/validate-kubectl.py 'v1.30.0'
- name: Setup kubectl with bad checksum (expect failure)
id: badsum
continue-on-error: true
uses: ./
with:
version: 'v1.29.0'
checksum: 'deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef'
- name: Assert bad-checksum step failed
if: steps.badsum.outcome != 'failure'
run: |
echo "Expected bad-checksum step to fail, but outcome was: ${{ steps.badsum.outcome }}"
exit 1
+2 -2
View File
@@ -10,10 +10,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 'lts/*'
cache: 'npm'
+1 -1
View File
@@ -13,6 +13,6 @@ jobs:
permissions:
actions: read
contents: write
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@v1
uses: Azure/action-release-workflows/.github/workflows/release_js_project.yaml@a391b701462581f586d0e8a68e60b04aa47dc4a9 # v1.2.0
with:
changelogPath: ./CHANGELOG.md
+2 -1
View File
@@ -13,9 +13,10 @@ jobs:
build: # make sure build/ci works properly
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Build and run L0 tests.
run: |
npm install
npm run build
npm test
+25 -2
View File
@@ -1,9 +1,32 @@
set +e
npm test
# Run format check
npm run format-check || {
echo ""
echo "❌ Formatting check failed."
echo "💡 Run 'npm run format' or 'prettier --write .' to fix formatting issues."
exit 1
}
}
STAGED=$(git diff --cached --name-only)
if echo "$STAGED" | grep -qE '^(package\.json|package-lock\.json|CHANGELOG\.md)$'; then
PKG_VERSION=$(node -p "require('./package.json').version")
LOCK_VERSION=$(node -p "require('./package-lock.json').version")
CHANGELOG_VERSION=$(sed -n 's/^## \[\([^]]*\)\].*/\1/p' CHANGELOG.md | head -1)
MISMATCH=""
if [ "$PKG_VERSION" != "$LOCK_VERSION" ]; then
MISMATCH="${MISMATCH}\n package.json: ${PKG_VERSION}\n package-lock.json: ${LOCK_VERSION}"
fi
if [ "$PKG_VERSION" != "$CHANGELOG_VERSION" ]; then
MISMATCH="${MISMATCH}\n package.json: ${PKG_VERSION}\n CHANGELOG.md: ${CHANGELOG_VERSION}"
fi
if [ -n "$MISMATCH" ]; then
echo ""
echo "❌ Version mismatch detected:"
echo -e "$MISMATCH"
echo ""
echo "💡 Ensure package.json, package-lock.json, and CHANGELOG.md all have the same version."
exit 1
fi
fi
+65
View File
@@ -1,5 +1,70 @@
# Changelog
## [5.2.0] - 2026-10-05
### Added
- #268 [Add custom download URL, checksum verification, and download authentication inputs](https://github.com/Azure/setup-kubectl/pull/268)
### Fixed
- #251 [Add Node.js types for TypeScript 6 compatibility](https://github.com/Azure/setup-kubectl/pull/251)
### Changed
- #267 [Pin the release workflow to a commit SHA](https://github.com/Azure/setup-kubectl/pull/267)
- #252 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/252)
- #253 [Update CI action dependencies](https://github.com/Azure/setup-kubectl/pull/253)
- #254 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/254)
- #255 [Update CodeQL action](https://github.com/Azure/setup-kubectl/pull/255)
- #257 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/257)
- #258 [Update CodeQL action](https://github.com/Azure/setup-kubectl/pull/258)
- #262 [Update Node.js type definitions](https://github.com/Azure/setup-kubectl/pull/262)
- #263 [Update CodeQL action](https://github.com/Azure/setup-kubectl/pull/263)
- #265 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/265)
- #266 [Update CI action dependencies](https://github.com/Azure/setup-kubectl/pull/266)
- #269 [Update Vitest](https://github.com/Azure/setup-kubectl/pull/269)
- #270 [Update Node.js type definitions](https://github.com/Azure/setup-kubectl/pull/270)
- #271 [Update CI action dependencies](https://github.com/Azure/setup-kubectl/pull/271)
- #272 [Update esbuild](https://github.com/Azure/setup-kubectl/pull/272)
- #273 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/273)
- #274 [Update Node.js type definitions](https://github.com/Azure/setup-kubectl/pull/274)
- #275 [Update checkout action](https://github.com/Azure/setup-kubectl/pull/275)
- #281 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/281)
- #282 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/282)
- #284 [Update Prettier](https://github.com/Azure/setup-kubectl/pull/284)
- #285 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/285)
- #287 [Update CI action dependencies](https://github.com/Azure/setup-kubectl/pull/287)
- #293 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/293)
- #294 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/294)
- #295 [Update CI action dependencies](https://github.com/Azure/setup-kubectl/pull/295)
- #299 [Update action dependencies](https://github.com/Azure/setup-kubectl/pull/299)
### Security
- #256 [Update postcss](https://github.com/Azure/setup-kubectl/pull/256)
- #276 [Update undici](https://github.com/Azure/setup-kubectl/pull/276)
- #289 [Update undici](https://github.com/Azure/setup-kubectl/pull/289)
- #290 [Update postcss](https://github.com/Azure/setup-kubectl/pull/290)
## [5.1.0] - 2026-04-11
### Changed
- #243 [Migrate to ESM with esbuild and vitest](https://github.com/Azure/setup-kubectl/pull/243)
- Replaced `@vercel/ncc` with `esbuild` for ESM bundling
- Replaced `jest`/`ts-jest` with `vitest` for testing
- Upgraded `@actions/core` to `^3.0.0`, `@actions/exec` to `^3.0.0`, `@actions/tool-cache` to `^4.0.0`
- Updated `tsconfig.json` to `NodeNext` module resolution
- Add `npm run build` step to CI unit-tests workflow
### Security
- #242 [Bump picomatch](https://github.com/Azure/setup-kubectl/pull/242)
- #244 [Bump handlebars from 4.7.8 to 4.7.9](https://github.com/Azure/setup-kubectl/pull/244)
- #247 [Bump vite from 8.0.3 to 8.0.5](https://github.com/Azure/setup-kubectl/pull/247)
- #245 [Bump github/codeql-action in CI workflows](https://github.com/Azure/setup-kubectl/pull/245)
## [5.0.0] - 2026-03-25
### Changed
+24
View File
@@ -11,6 +11,30 @@ Acceptable values are latest or any semantic version string like `v1.15.0`. Use
id: install
```
Alternatively, read the kubectl version from an
[asdf/mise `.tool-versions` file](https://asdf-vm.com/manage/configuration.html):
```yaml
- uses: azure/setup-kubectl@v5
with:
version-file: '.tool-versions'
id: install
```
The kubectl entry may use `major.minor`, `major.minor.patch`, an optional `v`
prefix, or `latest`:
```text
kubectl 1.31.2
```
If the file contains several `kubectl` entries, the first one is used. The file
must be a regular file (not a symbolic link) of at most 64 KiB.
When both inputs are set, a specific `version` other than `latest` takes
precedence and the action emits a warning. The default `version: latest` allows
`version-file` to select the version.
Refer to the action metadata file for details about all the inputs https://github.com/Azure/setup-kubectl/blob/main/action.yml
# Contributing
+16 -1
View File
@@ -3,8 +3,23 @@ description: 'Install a specific version of kubectl binary. Acceptable values ar
inputs:
version:
description: 'Version of kubectl'
required: true
required: false
default: 'latest'
version-file:
description: 'Path to a .tool-versions (asdf/mise) file to read the kubectl version from. A specific version other than latest takes precedence.'
required: false
downloadBaseURL:
description: 'Base URL to download kubectl from (https only). Use for private mirrors.'
required: false
default: 'https://dl.k8s.io'
checksum:
description: 'Expected SHA256 of the kubectl binary (lowercase 64-char hex). Required when overriding downloadBaseURL; the action fails closed without it to prevent unverified binaries from poisoning the tool cache.'
required: false
default: ''
downloadAuthToken:
description: 'Optional bearer token sent as the Authorization header when fetching from downloadBaseURL. Stripped on cross-origin redirects.'
required: false
default: ''
outputs:
kubectl-path:
description: 'Path to the cached kubectl binary'
-18
View File
@@ -1,18 +0,0 @@
module.exports = {
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
'^.+\\.ts$': 'ts-jest'
},
verbose: true,
coverageThreshold: {
global: {
branches: 0,
functions: 14,
lines: 27,
statements: 27
}
}
}
+1664 -7123
View File
File diff suppressed because it is too large Load Diff
+15 -14
View File
@@ -1,12 +1,14 @@
{
"name": "setup-kubectl-action",
"version": "5.0.0",
"version": "5.2.0",
"private": true,
"main": "lib/index.js",
"type": "module",
"scripts": {
"build": "npm i ncc && npx ncc build src/index.ts -o lib",
"test": "jest",
"test-coverage": "jest --coverage",
"build": "tsc --noEmit && esbuild src/index.ts --bundle --platform=node --target=node20 --format=esm --outfile=lib/index.js --banner:js=\"import { createRequire } from 'module';const require = createRequire(import.meta.url);\"",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test-coverage": "vitest run --coverage",
"format": "prettier --write .",
"format-check": "prettier --check .",
"prepare": "husky"
@@ -19,18 +21,17 @@
"author": "GitHub",
"license": "MIT",
"dependencies": {
"@actions/core": "^2.0.2",
"@actions/exec": "^2.0.0",
"@actions/tool-cache": "^3.0.0"
"@actions/core": "^3.0.1",
"@actions/exec": "^3.0.0",
"@actions/http-client": "^4.0.1",
"@actions/tool-cache": "^4.0.0"
},
"devDependencies": {
"@types/jest": "^30.0.0",
"@types/node": "^25.0.9",
"@vercel/ncc": "^0.38.4",
"@types/node": "^26.6.6",
"esbuild": "^0.28.2",
"husky": "^9.1.7",
"jest": "^30.2.0",
"prettier": "3.8.0",
"ts-jest": "^29.4.6",
"typescript": "5.9.3"
"prettier": "3.9.10",
"typescript": "7.0.2",
"vitest": "^5.1.0"
}
}
+338 -11
View File
@@ -1,8 +1,224 @@
import * as os from 'os'
import * as util from 'util'
import * as fs from 'fs'
import * as net from 'net'
import * as dns from 'dns'
import * as path from 'path'
import * as crypto from 'crypto'
import * as core from '@actions/core'
import * as toolCache from '@actions/tool-cache'
import {HttpClient} from '@actions/http-client'
export const DEFAULT_KUBECTL_BASE_URL = 'https://dl.k8s.io'
export function normalizeBaseURL(input: string): string {
const u = new URL(input)
return `${u.protocol}//${u.host}${u.pathname.replace(/\/+$/, '')}`
}
export function isDefaultBaseURL(input: string): boolean {
try {
return (
normalizeBaseURL(input) === normalizeBaseURL(DEFAULT_KUBECTL_BASE_URL)
)
} catch {
return false
}
}
const SECURE_DOWNLOAD_MAX_BYTES = 256 * 1024 * 1024
const SECURE_DOWNLOAD_MAX_REDIRECTS = 5
export async function secureDownload(
downloadURL: string,
authToken: string = ''
): Promise<string> {
const client = new HttpClient('setup-kubectl', [], {
allowRedirects: false
})
const initialOrigin = new URL(downloadURL).origin
let currentURL = downloadURL
let response!: Awaited<ReturnType<HttpClient['get']>>
let status: number | undefined
for (let hop = 0; hop <= SECURE_DOWNLOAD_MAX_REDIRECTS; hop++) {
await assertHostResolvesSafely(new URL(currentURL).hostname)
const sameOrigin = new URL(currentURL).origin === initialOrigin
const headers =
authToken && sameOrigin
? {Authorization: `Bearer ${authToken}`}
: undefined
response = await client.get(currentURL, headers)
status = response.message.statusCode
if (!status || status < 300 || status >= 400) break
const locationHeader = response.message.headers['location']
const location = Array.isArray(locationHeader)
? locationHeader[0]
: locationHeader
response.message.resume()
if (!location) {
throw new Error(
`Redirect from custom downloadBaseURL had no Location header (status ${status}).`
)
}
if (hop === SECURE_DOWNLOAD_MAX_REDIRECTS) {
throw new Error(
`Refusing download: exceeded ${SECURE_DOWNLOAD_MAX_REDIRECTS} redirects from custom downloadBaseURL.`
)
}
// Re-validate the redirect target so a mirror can't bounce us to a literal internal IP.
const next = new URL(location, currentURL)
validateBaseURL(next.toString())
currentURL = next.toString()
}
if (status !== 200) {
response.message.resume()
throw typeof status === 'number'
? new toolCache.HTTPError(status)
: new Error(
`Refusing download: no HTTP status returned for ${currentURL} (network or TLS error).`
)
}
const contentLengthHeader = response.message.headers['content-length']
const contentLength = Array.isArray(contentLengthHeader)
? contentLengthHeader[0]
: contentLengthHeader
if (contentLength) {
const declared = Number.parseInt(contentLength, 10)
if (Number.isFinite(declared) && declared > SECURE_DOWNLOAD_MAX_BYTES) {
response.message.resume()
throw new Error(
`Refusing download: Content-Length ${declared} exceeds cap ${SECURE_DOWNLOAD_MAX_BYTES} bytes.`
)
}
}
const tmpDir = process.env['RUNNER_TEMP'] || os.tmpdir()
const tmpFile = path.join(tmpDir, `kubectl-${crypto.randomUUID()}`)
// 'wx' = create exclusive, so we never silently overwrite an existing file.
const fd = fs.openSync(tmpFile, 'wx')
let received = 0
let success = false
try {
for await (const chunk of response.message as AsyncIterable<Buffer>) {
received += chunk.length
if (received > SECURE_DOWNLOAD_MAX_BYTES) {
response.message.destroy()
throw new Error(
`Refusing download: response body exceeded cap ${SECURE_DOWNLOAD_MAX_BYTES} bytes.`
)
}
fs.writeSync(fd, chunk)
}
success = true
} finally {
try {
fs.closeSync(fd)
} catch {
/* empty */
}
if (!success) {
try {
fs.unlinkSync(tmpFile)
} catch {
/* empty */
}
}
}
return tmpFile
}
export function validateBaseURL(input: string): URL {
let url: URL
try {
url = new URL(input)
} catch {
throw new Error(`Invalid downloadBaseURL: "${input}" is not a valid URL.`)
}
if (url.protocol !== 'https:') {
throw new Error(
`downloadBaseURL must use https://, got "${url.protocol}" in "${input}".`
)
}
if (url.username || url.password) {
throw new Error(
'downloadBaseURL must not contain userinfo (user:pass@host).'
)
}
// Strip IPv6 brackets so net.isIP recognises the address.
const host = url.hostname.toLowerCase().replace(/^\[|\]$/g, '')
const family = net.isIP(host)
if (family !== 0 && isBlockedIP(host, family)) {
throw new Error(
`downloadBaseURL host "${host}" is a literal loopback/link-local/private IP and is blocked.`
)
}
return url
}
// Loopback, link-local (incl. IMDS 169.254.169.254), RFC1918, IPv6 ULA, v4-mapped IPv6.
export function isBlockedIP(host: string, family: number): boolean {
return (
host === '::1' ||
host === '::' ||
host === '0.0.0.0' ||
/^127\./.test(host) ||
/^169\.254\./.test(host) ||
/^10\./.test(host) ||
/^192\.168\./.test(host) ||
/^172\.(1[6-9]|2\d|3[0-1])\./.test(host) ||
(family === 6 && /^f[cd]/.test(host)) || // ULA fc00::/7
(family === 6 && /^fe[89ab]/.test(host)) || // link-local fe80::/10
(family === 6 && host.startsWith('::ffff:')) // v4-mapped IPv6
)
}
// Reject hostnames whose DNS resolves to any blocked range. Closes the SSRF hole
// where an attacker controls DNS for a public-looking name pointed at internal IPs.
export async function assertHostResolvesSafely(
hostname: string
): Promise<void> {
const bare = hostname.replace(/^\[|\]$/g, '')
if (net.isIP(bare) !== 0) return
let addresses: dns.LookupAddress[]
try {
addresses = await dns.promises.lookup(bare, {all: true, verbatim: true})
} catch (err) {
throw new Error(
`Failed to resolve downloadBaseURL host "${bare}": ${
err instanceof Error ? err.message : String(err)
}`
)
}
for (const {address, family} of addresses) {
if (isBlockedIP(address.toLowerCase(), family)) {
throw new Error(
`downloadBaseURL host "${bare}" resolved to a blocked address (${address}); refusing to fetch.`
)
}
}
}
export function validateVersion(version: string): void {
if (!/^v?\d+\.\d+\.\d+$/.test(version)) {
throw new Error(
`Invalid kubectl version: "${version}". Expected a value like "v1.30.0".`
)
}
}
export function getKubectlArch(): string {
const arch = os.arch()
if (arch === 'x64') {
@@ -11,28 +227,54 @@ export function getKubectlArch(): string {
return arch
}
export function getkubectlDownloadURL(version: string, arch: string): string {
export function getkubectlDownloadURL(
version: string,
arch: string,
baseURL: string = DEFAULT_KUBECTL_BASE_URL
): string {
validateVersion(version)
const url = validateBaseURL(baseURL)
let osDir: string
let file: string
switch (os.type()) {
case 'Linux':
return `https://dl.k8s.io/release/${version}/bin/linux/${arch}/kubectl`
osDir = 'linux'
file = 'kubectl'
break
case 'Darwin':
return `https://dl.k8s.io/release/${version}/bin/darwin/${arch}/kubectl`
osDir = 'darwin'
file = 'kubectl'
break
case 'Windows_NT':
default:
return `https://dl.k8s.io/release/${version}/bin/windows/${arch}/kubectl.exe`
osDir = 'windows'
file = 'kubectl.exe'
break
}
const basePath = url.pathname.replace(/\/+$/, '')
url.pathname = `${basePath}/release/${version}/bin/${osDir}/${arch}/${file}`
return url.toString()
}
export async function getLatestPatchVersion(
major: string,
minor: string
minor: string,
baseURL: string = DEFAULT_KUBECTL_BASE_URL,
authToken: string = ''
): Promise<string> {
const version = `${major}.${minor}`
const sourceURL = `https://dl.k8s.io/release/stable-${version}.txt`
const url = validateBaseURL(baseURL)
const basePath = url.pathname.replace(/\/+$/, '')
url.pathname = `${basePath}/release/stable-${version}.txt`
const sourceURL = url.toString()
const useSecure = !isDefaultBaseURL(baseURL)
let downloadPath = ''
try {
const downloadPath = await toolCache.downloadTool(sourceURL)
downloadPath = useSecure
? await secureDownload(sourceURL, authToken)
: await toolCache.downloadTool(sourceURL)
const latestPatch = fs
.readFileSync(downloadPath, 'utf8')
.toString()
@@ -42,9 +284,17 @@ export async function getLatestPatchVersion(
}
return latestPatch
} catch (error) {
core.debug(error)
core.debug(String(error))
core.warning('GetLatestPatchVersionFailed')
throw new Error(`Failed to get latest patch version for ${version}`)
} finally {
if (useSecure && downloadPath) {
try {
fs.unlinkSync(downloadPath)
} catch {
/* best-effort cleanup of secureDownload temp file */
}
}
}
}
@@ -54,3 +304,80 @@ export function getExecutableExtension(): string {
}
return ''
}
export function parseToolVersionsFile(filePath: string): string {
const maxBytes = 64 * 1024
let pathStats: fs.BigIntStats
try {
pathStats = fs.lstatSync(filePath, {bigint: true})
} catch (error) {
if ((error as NodeJS.ErrnoException).code === 'ENOENT') {
throw new Error(`The version-file '${filePath}' was not found.`)
}
throw error
}
if (pathStats.isSymbolicLink() || !pathStats.isFile()) {
throw new Error(
`The version-file '${filePath}' must be a regular file and not a symbolic link.`
)
}
if (pathStats.size > BigInt(maxBytes)) {
throw new Error(
`The version-file '${filePath}' exceeds the ${maxBytes}-byte size limit.`
)
}
const noFollow = fs.constants.O_NOFOLLOW ?? 0
// A FIFO swapped in after lstat must not block open before fstat can reject it.
// O_NONBLOCK has no effect on regular files; these flags are POSIX-only.
const nonBlock = fs.constants.O_NONBLOCK ?? 0
const fd = fs.openSync(filePath, fs.constants.O_RDONLY | noFollow | nonBlock)
let content: string
try {
const fileStats = fs.fstatSync(fd, {bigint: true})
if (!fileStats.isFile()) {
throw new Error(
`The version-file '${filePath}' must be a regular file and not a symbolic link.`
)
}
if (pathStats.dev !== fileStats.dev || pathStats.ino !== fileStats.ino) {
throw new Error(
`The version-file '${filePath}' changed while it was being opened.`
)
}
const buffer = Buffer.alloc(maxBytes + 1)
let bytesRead = 0
while (bytesRead < buffer.length) {
const count = fs.readSync(
fd,
buffer,
bytesRead,
buffer.length - bytesRead,
null
)
if (count === 0) break
bytesRead += count
}
if (bytesRead > maxBytes) {
throw new Error(
`The version-file '${filePath}' exceeds the ${maxBytes}-byte size limit.`
)
}
content = buffer.toString('utf8', 0, bytesRead)
} finally {
fs.closeSync(fd)
}
for (const line of content.split('\n')) {
const trimmed = line.trim()
if (trimmed.startsWith('#') || trimmed === '') continue
const [tool, version] = trimmed.split(/\s+/)
if (tool === 'kubectl' && version) {
return version
}
}
throw new Error(
`Could not find a kubectl entry in tool-versions file: ${filePath}`
)
}
+1 -1
View File
@@ -1,4 +1,4 @@
import {run} from './run'
import {run} from './run.js'
import * as core from '@actions/core'
run().catch(core.setFailed)
+1128 -160
View File
File diff suppressed because it is too large Load Diff
+188 -40
View File
@@ -1,27 +1,92 @@
import * as path from 'path'
import * as util from 'util'
import * as fs from 'fs'
import * as crypto from 'crypto'
import * as toolCache from '@actions/tool-cache'
import * as core from '@actions/core'
import {
DEFAULT_KUBECTL_BASE_URL,
getkubectlDownloadURL,
getKubectlArch,
getExecutableExtension,
getLatestPatchVersion
} from './helpers'
getLatestPatchVersion,
isDefaultBaseURL,
normalizeBaseURL,
parseToolVersionsFile,
secureDownload,
validateBaseURL
} from './helpers.js'
const kubectlToolName = 'kubectl'
const stableKubectlVersion = 'v1.15.0'
const stableVersionUrl = 'https://dl.k8s.io/release/stable.txt'
export async function run() {
let version = core.getInput('version', {required: true})
if (version.toLocaleLowerCase() === 'latest') {
version = await getStableKubectlVersion()
} else {
version = await resolveKubectlVersion(version)
const versionFile = core.getInput('version-file')
let version = core.getInput('version')
if (versionFile) {
if (version && version.trim().toLowerCase() !== 'latest') {
core.warning(
"Both 'version' and 'version-file' inputs are specified; using 'version'."
)
} else {
version = parseToolVersionsFile(versionFile)
}
}
const cachedPath = await downloadKubectl(version)
if (!version) {
version = 'latest'
}
const rawBaseURL = core.getInput('downloadBaseURL', {required: false}).trim()
const downloadBaseURL = rawBaseURL || DEFAULT_KUBECTL_BASE_URL
validateBaseURL(downloadBaseURL)
const expectedChecksum = core
.getInput('checksum', {required: false})
.trim()
.toLowerCase()
const downloadAuthToken = core
.getInput('downloadAuthToken', {required: false})
.trim()
if (downloadAuthToken) {
core.setSecret(downloadAuthToken)
if (isDefaultBaseURL(downloadBaseURL)) {
throw new Error(
'`downloadAuthToken` was set but `downloadBaseURL` is the default (https://dl.k8s.io). Refusing to send a bearer token to the public Kubernetes mirror.'
)
}
}
if (!isDefaultBaseURL(downloadBaseURL)) {
if (!expectedChecksum) {
throw new Error(
'Refusing to download from a custom `downloadBaseURL` without a `checksum`. On self-hosted runners an unverified binary would poison the tool cache and be reused across jobs. Set the `checksum` input to a 64-char SHA-256 to enable integrity verification.'
)
}
core.notice(
`kubectl will be downloaded from a custom mirror: ${downloadBaseURL}`
)
}
if (version.trim().toLowerCase() === 'latest') {
version = await getStableKubectlVersion(
downloadBaseURL,
downloadAuthToken
)
} else {
version = await resolveKubectlVersion(
version,
downloadBaseURL,
downloadAuthToken
)
}
const cachedPath = await downloadKubectl(
version,
downloadBaseURL,
expectedChecksum,
downloadAuthToken
)
core.addPath(path.dirname(cachedPath))
@@ -31,32 +96,79 @@ export async function run() {
core.setOutput('kubectl-path', cachedPath)
}
export async function getStableKubectlVersion(): Promise<string> {
return toolCache.downloadTool(stableVersionUrl).then(
(downloadPath) => {
let version = fs.readFileSync(downloadPath, 'utf8').toString().trim()
if (!version) {
version = stableKubectlVersion
}
return version
},
(error) => {
core.debug(error)
core.warning('GetStableVersionFailed')
return stableKubectlVersion
export async function getStableKubectlVersion(
baseURL: string = DEFAULT_KUBECTL_BASE_URL,
authToken: string = ''
): Promise<string> {
const url = validateBaseURL(baseURL)
const basePath = url.pathname.replace(/\/+$/, '')
url.pathname = `${basePath}/release/stable.txt`
const stableVersionUrl = url.toString()
const useSecure = !isDefaultBaseURL(baseURL)
let downloadPath = ''
try {
downloadPath = useSecure
? await secureDownload(stableVersionUrl, authToken)
: await toolCache.downloadTool(stableVersionUrl)
let version = fs.readFileSync(downloadPath, 'utf8').toString().trim()
if (!version) {
version = stableKubectlVersion
}
)
return version
} catch (error) {
core.debug(String(error))
if (useSecure) {
throw new Error(
`Failed to fetch stable.txt from custom downloadBaseURL "${baseURL}".`
)
}
core.warning('GetStableVersionFailed')
return stableKubectlVersion
} finally {
if (useSecure && downloadPath) {
try {
fs.unlinkSync(downloadPath)
} catch {
/* empty */
}
}
}
}
export async function downloadKubectl(version: string): Promise<string> {
let cachedToolpath = toolCache.find(kubectlToolName, version)
export async function downloadKubectl(
version: string,
baseURL: string = DEFAULT_KUBECTL_BASE_URL,
expectedChecksum: string = '',
authToken: string = ''
): Promise<string> {
validateBaseURL(baseURL)
if (!isDefaultBaseURL(baseURL) && !expectedChecksum) {
throw new Error(
'Refusing to download from a custom `baseURL` without a `checksum`. Pass a 64-char SHA-256 to enable integrity verification.'
)
}
const cacheKey = isDefaultBaseURL(baseURL)
? version
: `${version}-${crypto
.createHash('sha256')
.update(normalizeBaseURL(baseURL))
.digest('hex')
.slice(0, 12)}`
let cachedToolpath = toolCache.find(kubectlToolName, cacheKey)
let kubectlDownloadPath = ''
const arch = getKubectlArch()
if (!cachedToolpath) {
const downloadURL = getkubectlDownloadURL(version, arch, baseURL)
try {
kubectlDownloadPath = await toolCache.downloadTool(
getkubectlDownloadURL(version, arch)
)
if (isDefaultBaseURL(baseURL)) {
kubectlDownloadPath = await toolCache.downloadTool(downloadURL)
} else {
kubectlDownloadPath = await secureDownload(downloadURL, authToken)
}
} catch (exception) {
if (
exception instanceof toolCache.HTTPError &&
@@ -69,28 +181,66 @@ export async function downloadKubectl(version: string): Promise<string> {
arch
)
)
} else {
throw new Error('DownloadKubectlFailed')
}
throw exception instanceof Error
? exception
: new Error(`DownloadKubectlFailed: ${String(exception)}`)
}
cachedToolpath = await toolCache.cacheFile(
kubectlDownloadPath,
kubectlToolName + getExecutableExtension(),
kubectlToolName,
version
)
try {
cachedToolpath = await toolCache.cacheFile(
kubectlDownloadPath,
kubectlToolName + getExecutableExtension(),
kubectlToolName,
cacheKey
)
} finally {
if (!isDefaultBaseURL(baseURL) && kubectlDownloadPath) {
try {
fs.unlinkSync(kubectlDownloadPath)
} catch {
/* empty */
}
}
}
}
const kubectlPath = path.join(
cachedToolpath,
kubectlToolName + getExecutableExtension()
)
// Re-verify on every run so cached binaries are also checked.
if (expectedChecksum) {
verifyChecksum(kubectlPath, expectedChecksum)
}
fs.chmodSync(kubectlPath, '775')
return kubectlPath
}
export async function resolveKubectlVersion(version: string): Promise<string> {
function verifyChecksum(filePath: string, expected: string): void {
if (!/^[a-f0-9]{64}$/.test(expected)) {
throw new Error(
`Invalid checksum input: expected a 64-character hex SHA256 string.`
)
}
const actual = crypto
.createHash('sha256')
.update(fs.readFileSync(filePath))
.digest('hex')
if (actual !== expected) {
throw new Error(
`Checksum mismatch for downloaded kubectl. Expected ${expected}, got ${actual}.`
)
}
}
export async function resolveKubectlVersion(
version: string,
baseURL: string = DEFAULT_KUBECTL_BASE_URL,
authToken: string = ''
): Promise<string> {
const cleanedVersion = version.trim()
const versionMatch = cleanedVersion.match(
/^v?(?<major>\d+)\.(?<minor>\d+)(?:\.(?<patch>\d+))?$/
@@ -105,12 +255,10 @@ export async function resolveKubectlVersion(version: string): Promise<string> {
const {major, minor, patch} = versionMatch.groups
if (patch) {
// Full version was provided, just ensure it has a 'v' prefix
return cleanedVersion.startsWith('v')
? cleanedVersion
: `v${cleanedVersion}`
}
// Patch version is missing, fetch the latest
return await getLatestPatchVersion(major, minor)
return await getLatestPatchVersion(major, minor, baseURL, authToken)
}
+67
View File
@@ -0,0 +1,67 @@
import {test, expect} from 'vitest'
import * as fs from 'node:fs'
import * as os from 'node:os'
import * as path from 'node:path'
import {spawnSync} from 'node:child_process'
import {parseToolVersionsFile} from './helpers.js'
test('version-file reads a real regular file', () => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'kubectl-version-'))
try {
const file = path.join(dir, '.tool-versions')
fs.writeFileSync(file, 'kubectl 1.27.15\n')
expect(parseToolVersionsFile(file)).toBe('1.27.15')
} finally {
fs.rmSync(dir, {recursive: true, force: true})
}
})
test.skipIf(process.platform === 'win32')(
'version-file rejects a FIFO swapped in after lstat without blocking',
() => {
const dir = fs.mkdtempSync(path.join(os.tmpdir(), 'kubectl-fifo-'))
try {
const file = path.join(dir, '.tool-versions')
fs.writeFileSync(file, 'kubectl 1.27.15\n')
// Isolate a potentially blocking open in a child with a hard timeout.
// Replace only lstat: open, fstat and the FIFO are real OS operations.
const script = `
const fs = require('node:fs');
const {execFileSync} = require('node:child_process');
const {syncBuiltinESMExports} = require('node:module');
const file = ${JSON.stringify(file)};
const lstat = fs.lstatSync;
fs.lstatSync = function(p, options) {
const stats = lstat(p, options);
if (p === file) {
fs.unlinkSync(file);
execFileSync('mkfifo', [file]);
}
return stats;
};
syncBuiltinESMExports();
import(${JSON.stringify(new URL('./helpers.ts', import.meta.url).href)})
.then(({parseToolVersionsFile}) => {
try {
parseToolVersionsFile(file);
process.exitCode = 1;
} catch (error) {
console.log(error.message);
process.exitCode = /must be a regular file/.test(error.message) ? 0 : 1;
}
}).catch(error => { console.error(error); process.exitCode = 1; });
`
const result = spawnSync(
process.execPath,
['--experimental-strip-types', '-e', script],
{encoding: 'utf8', timeout: 5000}
)
expect(result.error, result.stderr).toBeUndefined()
expect(result.status, result.stderr).toBe(0)
expect(result.stdout).toContain('must be a regular file')
} finally {
fs.rmSync(dir, {recursive: true, force: true})
}
},
10000
)
+9 -3
View File
@@ -1,8 +1,14 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "commonjs",
"lib": ["ES2020", "DOM"]
"module": "NodeNext",
"moduleResolution": "NodeNext",
"rootDir": "./src",
"outDir": "./lib",
"types": ["node"],
"skipLibCheck": true,
"noEmit": true
},
"exclude": ["node_modules", "test"]
"include": ["src"],
"exclude": ["node_modules", "**/*.test.ts", "vitest.config.ts"]
}
+10
View File
@@ -0,0 +1,10 @@
import {defineConfig} from 'vitest/config'
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['**/*.test.ts'],
clearMocks: true
}
})