Skip to content

Commit 113d664

Browse files
Added support for echo (AST-162045) (#213)
* Update .npmrc with new registry and auth settings * Modify CI workflow for echohq registry integration Updated CI workflow to use echohq registry and added authentication steps. * Refactor release.yml for clarity and consistency Removed unnecessary whitespace and updated comments in the release workflow. * Fix error message for lockfile verification Correct error message formatting in release workflow * removing extra space * correcting the secret variable of echo * vulnerability fixes * updating ast-cli version
1 parent 7e366ee commit 113d664

7 files changed

Lines changed: 35 additions & 13 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,16 @@ jobs:
2323
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
2424
with:
2525
node-version: 22.11.0
26-
registry-url: https://npm.pkg.github.com/
26+
registry-url: https://npm.echohq.com/
27+
- name: Configure echohq auth (both hosts)
28+
env:
29+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
30+
run: |
31+
npm config set //npm.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
32+
npm config set //packages.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
2733
- run: npm ci --ignore-scripts
34+
env:
35+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
2836
- name: Run Unit Tests
2937

3038
run: npm run test:unit
@@ -46,8 +54,16 @@ jobs:
4654
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
4755
with:
4856
node-version: 22.11.0
49-
registry-url: https://npm.pkg.github.com/
57+
registry-url: https://npm.echohq.com/
58+
- name: Configure echohq auth (both hosts)
59+
env:
60+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
61+
run: |
62+
npm config set //npm.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
63+
npm config set //packages.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
5064
- run: npm ci --ignore-scripts
65+
env:
66+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
5167
- name: Code Linting
5268
run: npm run lint
5369
- run: npm run build --if-present

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ jobs:
146146
fi
147147
148148
- name: NPM ci and build
149+
env:
150+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
149151
run: |
152+
npm config set //npm.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
153+
npm config set //packages.echohq.com/:_authToken "${ECHO_LIBRARIES_ACCESS_KEY}"
150154
npm ci --ignore-scripts
151155
npm run build
152156

.npmrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# Default registry for most packages
22
registry=https://npm.echohq.com/
3-
ignore-scripts=true
3+
//packages.echohq.com/:_authToken=
4+
always-auth=true
5+
ignore-scripts=true

checkmarx-ast-cli.checksums

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"windows_x64": "c0a2c3db0927004b8fe015117359dfd49766d4e1b61e1641e42f1e286a3a5e25",
3-
"darwin_x64": "f24712bee593ea6a253dc0c9551ca5b51e6b1336baf3c3abc5281a4e93d5f3b7",
4-
"linux_x64": "a8cf3222c88590cd355f4af6f9d10938f8ff834c44c1a80cf126a5d3f039c764",
5-
"linux_arm64": "763a3a42d2c75d8272dd90f686162233509272bc026e46e3d3079878ce76d9c2",
6-
"linux_armv6": "d897fb4260d70eed1329c0c50919e98a32ab19daf7836898faaa20de52252383"
2+
"windows_x64": "b93d0564891bf33231a1195cc246605c80f701d19d4c934a2986df341924a029",
3+
"darwin_x64": "b79cb1e6e7832a584f2e96c30046a4dd970ecb1c87cbb526eb799340321ed3d8",
4+
"linux_x64": "861112f7b78a9e84d8d4b4490c0dc6f6f716e5863246111db9c1c24efcf760db",
5+
"linux_arm64": "99c47d3686f84daf485a2e724f8d967d380aa00b04c83c3a438f5339e9cf111c",
6+
"linux_armv6": "76a2e0b27e4d1d70b2f98785d0ec003bdfe53da021e95b970f4ffac44d99e930"
77
}

checkmarx-ast-cli.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.54
1+
2.3.55

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
"minimatch": "^3.1.2",
6464
"underscore": "^1.13.8",
6565
"picomatch": "^2.3.2",
66-
"brace-expansion": "^2.0.3",
66+
"brace-expansion": "^2.1.2",
6767
"uuid": "^9.0.0"
6868
},
6969
"publishConfig": {

0 commit comments

Comments
 (0)