mirror of
https://github.com/Azure/setup-kubectl
synced 2025-09-22 11:37:54 +00:00

Some checks failed
CodeQL Advanced / Analyze (javascript-typescript) (push) Failing after 2s
Integration test for setup-kubectl / Validate release and master branch (push) Failing after 0s
Run prettify / Prettier Check (push) Failing after 0s
Run unit tests. / build (push) Failing after 0s
* feat: Implement resolveKubectlVersion function with comprehensive test coverage
Introduce resolveKubectlVersion function that enables automatic selection of the latest patch version when provided with major.minor version input (e.g., '1.27' resolves to 'v1.27.15')
Test Coverage:
- Major.minor version expansion to latest available patch
- Full version passthrough behavior (returns unchanged)
- Single matching version selection logic
- Comprehensive unit tests for kubectl version resolution scenarios
* chore: fix Prettier formatting
* refactor(resolveKubectlVersion): switch to k8s CDN for security patch retrieval
Replaced GitHub API Octo client with k8s CDN to fetch the latest security patch for improved reliability. Separated the API call logic from resolveKubectlVersion to enhance testability and readability.
* feat: validate semantic version and refactor patch logic
- Added validation to `resolveKubectlVersion` to ensure input follows "major.minor" or "major.minor.patch" format.
- Moved `getLatestPatchVersion` from `run.ts` to `helpers.ts` to improve code organization and ensure a more robust testing process.
* Bump github/codeql-action in /.github/workflows in the actions group (#173)
Bumps the actions group in /.github/workflows with 1 update: [github/codeql-action](https://github.com/github/codeql-action).
Updates `github/codeql-action` from 3.29.0 to 3.29.1
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](ce28f5bb42...39edc492db
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 3.29.1
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>
* chore: fix code style issues with Prettier
* revised parsing logic
* Improved readability and maintainability
* regenerated package-lock.json
* Regenerated Package-lock.json
* removed unnecessary files
* regenerated package-lock.json
* Regenerate package-lock.json to match package.json version ranges
* Restore package-lock.json to previous version
* uninstall ncc and regenerate package-lock.json using npm ci
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 lines
158 B
JSON
8 lines
158 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"module": "commonjs",
|
|
"lib": ["ES2020", "DOM"]
|
|
},
|
|
"exclude": ["node_modules", "test"]
|
|
}
|