Skip to content

Commit 6ed47cf

Browse files
upgraded latest cli version and added sha check for downloading cli
1 parent 60c4b85 commit 6ed47cf

7 files changed

Lines changed: 5308 additions & 3809 deletions

File tree

.github/workflows/delete-packages-and-releases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,20 @@ jobs:
3030
3131
echo "Deleting all npm packages whose name ends with '-${{inputs.tag}}.0'"
3232
33-
VERSION_IDS=($(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/Checkmarx/packages/npm/ast-cli-javascript-wrapper-runtime-cli/versions | jq '.[]|select(.name | contains("-${{inputs.tag}}.0"))|.id'))
33+
VERSION_IDS=($(curl -L -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/orgs/Checkmarx/packages/npm/ast-cli-javascript-wrapper-runtime-cli/versions | jq '.[]|select(.name | contains("-${{inputs.tag}}.0"))|.id'))
3434
3535
for versionId in "${VERSION_IDS[@]}"
3636
do
3737
echo "Deleting version $versionId..."
38-
curl -L -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.PERSONAL_ACCESS_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/Checkmarx/packages/npm/ast-cli-javascript-wrapper-runtime-cli/versions/$versionId"
38+
curl -L -X DELETE -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -H "X-GitHub-Api-Version: 2022-11-28" "https://api.github.com/orgs/Checkmarx/packages/npm/ast-cli-javascript-wrapper-runtime-cli/versions/$versionId"
3939
echo "Version $versionId deleted successfully!"
4040
done
4141
4242
- name: Delete releases and tags
4343
continue-on-error: true
4444
uses: dev-drprasad/delete-older-releases@dfbe6be2a006e9475dfcbe5b8d201f1824c2a9fe #v0.3.4
4545
env:
46-
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
with:
4848
keep_latest: 0
4949
delete_tag_pattern: "-${{inputs.tag}}.0"

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": "441ee8df46cc630ae000f8ba73925113aeed8c4d16cf274944aff3e7197e3470",
3-
"darwin_x64": "b72f7e4ca14e5e56600b07d22c848a4b85e7c37d2e595424340cc699ea10006b",
4-
"linux_x64": "eb3eb55add37f150188f5a8b36b2a659f902ad9569dcb7ee652531fe525022e2",
5-
"linux_arm64": "7df61689b3c2bbd4c27face5bdc0da97f63e4533229d6b53dd777f90d3904931",
6-
"linux_armv6": "99659f2e0804b197550efc6a9ddb6029babc980d32bdfeeb508199247ac95878"
2+
"windows_x64": "c0a2c3db0927004b8fe015117359dfd49766d4e1b61e1641e42f1e286a3a5e25",
3+
"darwin_x64": "f24712bee593ea6a253dc0c9551ca5b51e6b1336baf3c3abc5281a4e93d5f3b7",
4+
"linux_x64": "a8cf3222c88590cd355f4af6f9d10938f8ff834c44c1a80cf126a5d3f039c764",
5+
"linux_arm64": "763a3a42d2c75d8272dd90f686162233509272bc026e46e3d3079878ce76d9c2",
6+
"linux_armv6": "d897fb4260d70eed1329c0c50919e98a32ab19daf7836898faaa20de52252383"
77
}

checkmarx-ast-cli.version

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

0 commit comments

Comments
 (0)