File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : AST Javascript wrapper CI
22
33on : [pull_request]
4+
45permissions :
56 contents : read
67
8+ concurrency :
9+ group : ${{ github.workflow }}-${{ github.ref }}
10+ cancel-in-progress : true
11+
712jobs :
813 integration-tests :
14+ name : Run Integration Tests
915 runs-on : cx-public-ubuntu-x64
1016 steps :
1117 - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1218 with :
1319 lfs : true
20+ persist-credentials : false
1421
1522 - name : Install Git LFS
1623 run : |
6774 CX_BASE_URI : ${{ secrets.CX_BASE_URI }}
6875 CX_TENANT : ${{ secrets.CX_TENANT }}
6976 CX_APIKEY : ${{ secrets.CX_APIKEY }}
70- run : npm test
77+ run : npm test
Original file line number Diff line number Diff line change 11name : cx-one-scan
2+
3+ permissions :
4+ contents : read # For reading repository code
5+
26on :
37 workflow_dispatch :
48 pull_request :
812 schedule :
913 - cron : ' 00 5 * * *' # Every day at 05:00
1014
15+ concurrency :
16+ group : ${{ github.workflow }}-${{ github.ref }}
17+ cancel-in-progress : true
18+
1119jobs :
1220 cx-one-scan :
13- name : cx-one-scan
21+ name : Checkmarx One Security Scan
1422 runs-on : cx-public-ubuntu-x64
23+ permissions :
24+ contents : read # For reading repository code
1525 steps :
1626 - name : Checkout
1727 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+ with :
29+ persist-credentials : false
1830 - name : Checkmarx One CLI Action
1931 uses : checkmarx/ast-github-action@9fda4ab4c1b67c35de380552a972a82997d97731 # https://github.com/Checkmarx/ast-github-action/releases/tag/2.0.42
2032 with :
Original file line number Diff line number Diff line change 1616permissions :
1717 contents : read
1818
19+ concurrency :
20+ group : ${{ github.workflow }}-${{ github.ref }}
21+ cancel-in-progress : true
22+
1923jobs :
2024 delete :
25+ name : Delete Old Packages and Releases
2126 permissions :
22- contents : write
23- packages : write
27+ contents : write # For deleting releases and tags
28+ packages : write # For deleting npm packages
2429 runs-on : cx-public-ubuntu-x64
2530 steps :
2631
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 : true
14+
1115jobs :
1216 nightly :
17+ name : Nightly Release Job
1318 permissions :
14- id-token : write
15- contents : write
16- packages : write
17- uses : Checkmarx/ast-cli-javascript-wrapper/.github/workflows/release.yml@main
18- secrets : inherit
19+ id-token : write # For signing artifacts
20+ contents : write # For pushing tags and releases
21+ packages : write # For publishing packages
22+ uses : Checkmarx/ast-cli-javascript-wrapper/.github/workflows/release.yml@abe950ede3b052dfc236f730cf11cc290af53d1c
23+ secrets :
24+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
25+ ECHO_LIBRARIES_ACCESS_KEY : ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
Original file line number Diff line number Diff line change 4747permissions :
4848 contents : read
4949
50+ concurrency :
51+ group : ${{ github.workflow }}-${{ github.ref }}
52+ cancel-in-progress : true
53+
5054jobs :
5155 delete :
56+ name : Delete Old Packages and Releases
5257 permissions :
53- contents : write
54- packages : write
55- uses : Checkmarx/ast-cli-javascript-wrapper/.github/workflows/delete-packages-and-releases.yml@main
58+ contents : write # For deleting releases
59+ packages : write # For deleting packages
60+ uses : Checkmarx/ast-cli-javascript-wrapper/.github/workflows/delete-packages-and-releases.yml@abe950ede3b052dfc236f730cf11cc290af53d1c
5661 with :
5762 tag : ${{ inputs.jsTag }}
58- secrets : inherit
63+ secrets :
64+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5965 if : inputs.dev == true
6066 release :
67+ name : Release JavaScript Wrapper
6168 permissions :
62- id-token : write
63- contents : write
64- packages : write
69+ id-token : write # For signing artifacts
70+ contents : write # For pushing tags and releases
71+ packages : write # For publishing packages
6572 runs-on : cx-public-ubuntu-x64
6673 env :
6774 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7683 with :
7784 fetch-depth : 0
7885 lfs : true # Ensure LFS files are checked out
86+ persist-credentials : false
7987
8088 # VERIFY SINGLE LOCKFILE
8189 - name : Verify single lockfile
@@ -185,7 +193,7 @@ jobs:
185193 if : inputs.dev == false
186194 run : |
187195 git pull
188- git tag ${{env. TAG_NAME} }
196+ git tag ${TAG_NAME}
189197 git push --tags
190198
191199
Original file line number Diff line number Diff line change 11name : Update checkmarx ast cli
2+
23on :
34 workflow_dispatch :
45 repository_dispatch :
78permissions :
89 contents : read
910
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
1015jobs :
1116 update-checkmarx-cli :
17+ name : Update Checkmarx CLI Binaries
1218 permissions :
13- contents : write
19+ contents : write # For pushing updated CLI binaries
1420 runs-on : cx-public-ubuntu-x64
1521 steps :
1622 - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1723 with :
1824 lfs : true
25+ persist-credentials : false
1926
2027 - name : Install Git LFS
2128 run : |
You can’t perform that action at this time.
0 commit comments