Skip to content

Commit 73bc940

Browse files
cx-atish-jadhavcx-anurag-dalkeclaude
authored
Bump version to 1.0.38 and upgrade uuid (#215)
* Bump version to 1.0.38 and upgrade uuid Bump package version to 1.0.38 in package.json and package-lock.json. Upgrade dependency uuid from ^8.3.2 to ^9.0.0 and regenerate lockfile entries (node_modules/uuid@9.0.1). Removes older nested uuid@8.3.2 entries from lockfile. This updates the UUID package for compatibility/security and refreshes the lockfile to match the new dependency. * Fix unit test cases * updated package-lock.json * removed uuid version 9.0.0 from package.json * Fix flaky Result List Successful case in integration tests The test searched tenant-wide completed scan history for one with parseable results, but that history is dominated by zero-finding scans, causing the CLI to omit the results key and the test to fail. It now triggers its own SAST scan against the known-vulnerable tsc/tests/data/python-vul-file.py so results are always present. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> * Update AST CLI to 2.3.57 Updates the AST CLI binary version from 2.3.55 to 2.3.57 with new checksums for all supported platforms (Windows x64, Darwin x64, Linux x64/ARM64/ARMv6). * added zizmor check * fix: change in runner * removing dependabot workflows --------- Co-authored-by: Anurag Dalke <120229307+cx-anurag-dalke@users.noreply.github.com> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 22730d4 commit 73bc940

16 files changed

Lines changed: 260 additions & 298 deletions

.github/workflows/auto-merge-pr.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/checkmarx-one-scan.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@ on:
88
schedule:
99
- cron: '00 7 * * *' # Every day at 07:00
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
permissions:
16+
contents: read
17+
1118
jobs:
1219
cx-scan:
1320
name: Checkmarx One Scan
1421
runs-on: cx-public-ubuntu-x64
1522
steps:
1623
- name: Checkout
1724
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25+
with:
26+
persist-credentials: false
1827
- name: Checkmarx One CLI Action
1928
uses: checkmarx/ast-github-action@ef93013c95adc60160bc22060875e90800d3ecfc #v.2.3.19
2029
with:

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
name: AST Javascript wrapper CI
22

33
on: [ pull_request ]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
49
permissions:
510
contents: read
611

712
jobs:
813
unit-tests:
14+
name: Unit Tests
915
runs-on: cx-public-ubuntu-x64
1016
steps:
11-
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
17+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v6
18+
with:
19+
persist-credentials: false
1220
- name: Verify single lockfile (Step 0 - Supply Chain Policy)
1321
run: |
1422
if [ -f yarn.lock ] && [ -f package-lock.json ]; then
@@ -31,9 +39,12 @@ jobs:
3139

3240
run: npm run test:unit
3341
integration-tests:
42+
name: Integration Tests
3443
runs-on: cx-public-ubuntu-x64
3544
steps:
3645
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
46+
with:
47+
persist-credentials: false
3748
- name: Verify single lockfile (Step 0 - Supply Chain Policy)
3849
run: |
3950
if [ -f yarn.lock ] && [ -f package-lock.json ]; then

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,19 @@ on:
1313
description: 'Tag to delete'
1414
required: true
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: false
19+
1620
permissions:
1721
contents: read
1822

1923
jobs:
2024
delete:
25+
name: Delete packages and releases
2126
permissions:
22-
contents: write
23-
packages: write
27+
contents: write # for gh release delete and tag cleanup
28+
packages: write # for deleting npm package versions
2429
runs-on: cx-public-ubuntu-x64
2530
steps:
2631

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ on:
88
branches:
99
- main
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: false
14+
1115
jobs:
1216
nightly:
13-
uses: Checkmarx/ast-cli-javascript-wrapper-runtime-cli/.github/workflows/release.yml@main
14-
secrets: inherit
17+
uses: Checkmarx/ast-cli-javascript-wrapper-runtime-cli/.github/workflows/release.yml@main # zizmor: ignore[unpinned-uses]
18+
secrets: inherit # zizmor: ignore[secrets-inherit]

.github/workflows/release.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,24 +44,29 @@ on:
4444
default: true
4545
type: boolean
4646

47+
concurrency:
48+
group: ${{ github.workflow }}-${{ github.ref }}
49+
cancel-in-progress: false
50+
4751
permissions:
4852
contents: read
4953

5054
jobs:
5155
delete:
5256
permissions:
53-
contents: write
54-
packages: write
55-
uses: Checkmarx/ast-cli-javascript-wrapper-runtime-cli/.github/workflows/delete-packages-and-releases.yml@main
57+
contents: write # for gh release delete and tag cleanup
58+
packages: write # for deleting npm package versions
59+
uses: Checkmarx/ast-cli-javascript-wrapper-runtime-cli/.github/workflows/delete-packages-and-releases.yml@main # zizmor: ignore[unpinned-uses]
5660
with:
5761
tag: ${{ inputs.jsTag }}
58-
secrets: inherit
62+
secrets: inherit # zizmor: ignore[secrets-inherit]
5963
if: inputs.dev == true
6064
release:
65+
name: Release
6166
permissions:
62-
id-token: write
63-
contents: write
64-
packages: write
67+
id-token: write # allows this job to request a GitHub OIDC token
68+
contents: write # for git tag push and creating the GitHub release
69+
packages: write # for publishing the npm package to GitHub Packages
6570
runs-on: cx-public-ubuntu-x64
6671
env:
6772
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -72,7 +77,7 @@ jobs:
7277
steps:
7378
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
7479
with:
75-
fetch-depth: 0
80+
persist-credentials: false
7681

7782
- name: Verify single lockfile (Step 0 - Supply Chain Policy)
7883
run: |
@@ -181,8 +186,8 @@ jobs:
181186
- name: Push tag
182187
if: inputs.dev == false
183188
run: |
184-
git pull
185-
git tag ${{env.TAG_NAME}}
189+
git pull
190+
git tag "$TAG_NAME"
186191
git push --tags
187192
188193
- name: Publish npm package
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Scan for GitHub Actions issues
2+
3+
on:
4+
pull_request:
5+
workflow_call:
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.repository }}-${{ github.ref }}
9+
10+
permissions: {}
11+
12+
jobs:
13+
zizmor:
14+
name: Scan repository contents
15+
runs-on: cx-public-ubuntu-x64
16+
permissions:
17+
contents: read
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
21+
with:
22+
persist-credentials: false
23+
24+
- name: Run Zizmor linter
25+
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
26+
with:
27+
advanced-security: false
28+
annotations: false
29+
persona: pedantic
30+
fail-on-no-inputs: false
31+
online-audits: false

.github/workflows/update-cli.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,31 @@ on:
77
description: 'New CLI version (optional)'
88
required: false
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
1014
permissions:
1115
contents: read
1216

1317
jobs:
1418
update-checkmarx-cli:
19+
name: Update Checkmarx AST CLI
1520
runs-on: cx-public-ubuntu-x64
1621

1722
steps:
1823
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
24+
with:
25+
persist-credentials: false
1926

2027
# Fetch the latest Checkmarx AST CLI version
2128
- name: Get Latest Checkmarx API version
2229
id: checkmarx-ast-cli
30+
env:
31+
NEW_CLI_VERSION: ${{ github.event.inputs.new_cli_version }}
2332
run: |
24-
if [ "${{ github.event.inputs.new_cli_version }}" ]; then
25-
LATEST_VERSION=${{ github.event.inputs.new_cli_version }}
33+
if [ "$NEW_CLI_VERSION" ]; then
34+
LATEST_VERSION="$NEW_CLI_VERSION"
2635
else
2736
LATEST_VERSION=$(curl -sL https://api.github.com/repos/Checkmarx/ast-cli/releases/latest | jq -r ".tag_name")
2837
fi
@@ -36,7 +45,7 @@ jobs:
3645
env:
3746
RELEASE_TAG: ${{ steps.checkmarx-ast-cli.outputs.release_tag }}
3847
run: |
39-
echo ${{ steps.checkmarx-ast-cli.outputs.release_tag }} > checkmarx-ast-cli.version
48+
echo "$RELEASE_TAG" > checkmarx-ast-cli.version
4049
4150
# Download CLI binaries and generate checksums
4251
- name: Download CLI and generate checksums

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": "b93d0564891bf33231a1195cc246605c80f701d19d4c934a2986df341924a029",
3-
"darwin_x64": "b79cb1e6e7832a584f2e96c30046a4dd970ecb1c87cbb526eb799340321ed3d8",
4-
"linux_x64": "861112f7b78a9e84d8d4b4490c0dc6f6f716e5863246111db9c1c24efcf760db",
5-
"linux_arm64": "99c47d3686f84daf485a2e724f8d967d380aa00b04c83c3a438f5339e9cf111c",
6-
"linux_armv6": "76a2e0b27e4d1d70b2f98785d0ec003bdfe53da021e95b970f4ffac44d99e930"
2+
"windows_x64": "8e724f79993cc8ee7f1e20420187fcc9dd6c1ff2dbaa561756c3a62d7256c008",
3+
"darwin_x64": "4298ef700bf29dbfbe315f8bed1a5be8bd0458aad50f155fe1eadfa6d721820b",
4+
"linux_x64": "f4f7dee7d823b98822f389142910ce26896929e6103c3eaba6cfa5499825c5b0",
5+
"linux_arm64": "3504e0c66acab302f59fbb536f57b6163ad93428f10fcf299c3bcad5f5058577",
6+
"linux_armv6": "fc674c61489b77e0bf6c8716283bee26e17911fca93169847e315d2de270a1f9"
77
}

0 commit comments

Comments
 (0)