* 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>
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Grabbed the upstream integration tests and brought them here. Removed bash script. Added validateKubectl.py to /test folder for integration tests.
* Ran npm run build
* Ran npm run build
* Updated on section for integration-tests.yml
* Removing ruby commands from integration tests yaml.
* Fixing discrepancies in integration test yaml.
* Fixing discrepancies in integration test yaml.
* Default to ubuntu-latest
* renamed python script according to workflow.
* renamed python script according to workflow.
* Fixing path parameters.
* Updated tsconfig.json
* Testing for int test failure.
* Validated that int tests work.
* Added new workflows.
* Testing release (#10)
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Did some reorganizing of code in run.ts, moved run.test.ts into /src, and put some helpers into helpers.ts in /src.
* Grabbed the upstream integration tests and brought them here. Removed bash script. Added validateKubectl.py to /test folder for integration tests.
* Ran npm run build
* Ran npm run build
* Updated on section for integration-tests.yml
* Removing ruby commands from integration tests yaml.
* Fixing discrepancies in integration test yaml.
* Fixing discrepancies in integration test yaml.
* Default to ubuntu-latest
* renamed python script according to workflow.
* renamed python script according to workflow.
* Fixing path parameters.
* Updated tsconfig.json
* Testing for int test failure.
* Validated that int tests work.
* Added new workflows.
Co-authored-by: Tommy Barnes <thbarnes@microsoft.com>
* made changes reflected in comments
Co-authored-by: Tommy Barnes <thbarnes@microsoft.com>
* SetUp for L0 TestCases
* Issue Fix
* Issue Fix
* Issue Fix
* Issue Fix
* Issue Fix
* Issue Fix
* Review comments fix: run npm install only with our build, npm install only dev for releases
* Running code covrage only on PR of master and releases