Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
build_and_test:

runs-on: ubuntu-latest

permissions:
id-token: write
contents: read
strategy:
matrix:
node-version: [20.x, 22.x]
node-version: [20.x, 22.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand All @@ -26,12 +28,24 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Set up Artifactory Auth with OIDC
id: jfrog_setup
uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: https://artifactory.coxautoinc.com
with:
oidc-provider-name: gh-public

- name: Configure npm to use Artifactory
run: |
jf npm-config --repo-resolve cai-npm --server-id-resolve setup-jfrog-cli-server

# Note: if this step is failing due to authentication errors, it is likely because you regenerated the npm-shrinkwrap.json
# file while your local NPM was set to use the coxauto artifactory NPM registry. To fix this, locally delete your node_modules
# folder and npm-shrinkwrap.json file, then run `npm i --registry=https://registry.npmjs.org/` to reinstall using public NPM
# and then `npm shrinkwrap` to regenerate the npm-shrinkwrap.json file.
- name: Install dependencies
run: npm ci
run: jf npm ci
- run: npm run build --if-present
- name: Run tests
run: npm test -- --no-watch
Expand All @@ -40,6 +54,7 @@ jobs:
env:
REFRESH_TOKEN: ${{ secrets.ALKS_REFRESH_TOKEN }}
USERNAME: ${{ secrets.ALKS_USER }}
NPM_AUTH_TOKEN: ${{ steps.jfrog_setup.outputs.oidc-token }}
run: |
make test CI_MODE=true
make test CI_MODE=true NPM_AUTH_TOKEN=${{ steps.jfrog_setup.outputs.oidc-token }}
working-directory: ./e2e
19 changes: 17 additions & 2 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,30 @@ jobs:
test-coverage:
name: Upload Coverage to Sonarqube
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
node-version: 24

- name: Set up Artifactory Auth with OIDC
uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: https://artifactory.coxautoinc.com
with:
oidc-provider-name: gh-public

- name: Configure npm to use Artifactory
run: |
jf npm-config --repo-resolve cai-npm --server-id-resolve setup-jfrog-cli-server

- name: Install node modules
run: npm ci
run: jf npm ci
- name: Build coverage report
run: npm run coverage
env:
Expand Down
30 changes: 24 additions & 6 deletions .github/workflows/trigger-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:

bump_version:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
needs:
- get_pull_request
if: ${{ contains(needs.get_pull_request.outputs.pull_request_labels, 'release/patch') || contains(needs.get_pull_request.outputs.pull_request_labels, 'release/minor') || contains(needs.get_pull_request.outputs.pull_request_labels, 'release/major') }}
Expand All @@ -35,8 +38,18 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
node-version: 24

- name: Set up Artifactory Auth with OIDC
uses: jfrog/setup-jfrog-cli@v4
env:
JF_URL: https://artifactory.coxautoinc.com
with:
oidc-provider-name: gh-public

- name: Configure npm to use Artifactory
run: |
jf npm-config --repo-resolve cai-npm --server-id-resolve setup-jfrog-cli-server

- name: Set github user
run: |
Expand All @@ -45,7 +58,7 @@ jobs:

# need to run npm install before npm version so that husky's precommit hooks rebuild the dist/ folder
- name: install dependencies
run: npm ci
run: jf npm ci

- name: Get the release level (major/minor/patch) from the labels
uses: actions-ecosystem/action-release-label@955bf130fba6be3d99d2c14457d0dc7f176bc563
Expand Down Expand Up @@ -116,6 +129,11 @@ jobs:
release_name: ${{ steps.previoustag.outputs.tag }}
body: ${{ needs.get_pull_request.outputs.pull_request_body }}

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Configure npm for npmjs publishing
run: |
echo "registry=https://registry.npmjs.org/" > .npmrc

- name: Publish to npm with OIDC provenance
run: |
unset NODE_AUTH_TOKEN
npm publish --provenance --access public
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://artifactory.coxautoinc.com/artifactory/api/npm/cai-npm/
5 changes: 2 additions & 3 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
★ Release Notes: 2025-10-16 ★
★ Release Notes: 2025-12-16 ★
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

Thanks for upgrading to the latest version of the ALKS CLI!

* Allows for use of automated change ticket creation or verification when getting keys.
See [ChangeMinder](https://pages.ghe.coxautoinc.com/ETS-CloudAutomation/Cloud-Platform-Docs/docs/tools_by_cloud_provider/aws/security_services/alks/changeminder) for details.
* Fixed favorites not being displayed correctly in certain scenarios.

Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues

Expand Down
5 changes: 2 additions & 3 deletions dist/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
★ Release Notes: 2025-10-16 ★
★ Release Notes: 2025-12-16 ★
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡

Thanks for upgrading to the latest version of the ALKS CLI!

* Allows for use of automated change ticket creation or verification when getting keys.
See [ChangeMinder](https://pages.ghe.coxautoinc.com/ETS-CloudAutomation/Cloud-Platform-Docs/docs/tools_by_cloud_provider/aws/security_services/alks/changeminder) for details.
* Fixed favorites not being displayed correctly in certain scenarios.

Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues

Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"crypto": "0.0.3",
"fuzzy": "^0.1.1",
"ini": "^2.0.0",
"inquirer": "^6.5.2",
"inquirer": "^8.2.7",
"lodash": "^4.17.21",
"lokijs": "^1.5.1",
"memoizee": "^0.4.15",
Expand Down
18 changes: 16 additions & 2 deletions dist/src/lib/compareFavorites.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/lib/compareFavorites.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/src/lib/handlers/alks-developer-favorites.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/lib/handlers/alks-developer-favorites.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions dist/src/lib/promptForAlksAccountAndRole.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading