File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 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+
1118jobs :
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 :
Original file line number Diff line number Diff line change 11name : AST Javascript wrapper CI
22
33on : [ pull_request ]
4+
5+ concurrency :
6+ group : ${{ github.workflow }}-${{ github.ref }}
7+ cancel-in-progress : true
8+
49permissions :
510 contents : read
611
712jobs :
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
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
Original file line number Diff line number Diff line change 1313 description : ' Tag to delete'
1414 required : true
1515
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : false
19+
1620permissions :
1721 contents : read
1822
1923jobs :
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
Load diff This file was deleted.
Original file line number Diff line number Diff line change 88 branches :
99 - main
1010
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : false
14+
1115jobs :
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]
Original file line number Diff line number Diff line change 4444 default : true
4545 type : boolean
4646
47+ concurrency :
48+ group : ${{ github.workflow }}-${{ github.ref }}
49+ cancel-in-progress : false
50+
4751permissions :
4852 contents : read
4953
5054jobs :
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 }}
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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 77 description : ' New CLI version (optional)'
88 required : false
99
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : false
13+
1014permissions :
1115 contents : read
1216
1317jobs :
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
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
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments