Skip to content

Commit 89cfcc0

Browse files
Update to AST CLI 2.3.55 and switch to Echo repository
Updates the AST CLI binaries to version 2.3.55 across all platforms (Linux, Linux ARM, macOS, Windows). Switches distribution from Sonatype Central to Checkmarx's Echo repository, adds Echo repository configuration to pom.xml for dependencies and plugins, and configures Maven mirror authentication in CI/release workflows with ECHO_LIBRARIES_ACCESS_KEY secret. Also adds .vscode to gitignore.
1 parent faff0c2 commit 89cfcc0

9 files changed

Lines changed: 39 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ jobs:
3434

3535
- name: Configure echo mirror for dependency resolution
3636
run: |
37-
sed -i 's|</settings>|<mirrors><mirror><id>echo</id><mirrorOf>central</mirrorOf><url>https://maven.echohq.com</url></mirror></mirrors></settings>|' ~/.m2/settings.xml
37+
sed -i 's|</settings>|<servers><server><id>echo-repo</id><username></username><password>'"$ECHO_LIBRARIES_ACCESS_KEY"'</password></server></servers><mirrors><mirror><id>echo</id><mirrorOf>*</mirrorOf><url>https://maven.echohq.com</url></mirror></mirrors></settings>|' ~/.m2/settings.xml
38+
env:
39+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
3840

3941
- name: Check existence of cx-linux binary
4042
run: |

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ on:
5050
required: true
5151
OSSRH_USERNAME:
5252
required: true
53+
ECHO_LIBRARIES_ACCESS_KEY:
54+
required: true
5355

5456
permissions:
5557
contents: read
@@ -127,7 +129,9 @@ jobs:
127129

128130
- name: Configure echo mirror for dependency resolution
129131
run: |
130-
sed -i 's|</settings>|<mirrors><mirror><id>echo</id><mirrorOf>central</mirrorOf><url>https://maven.echohq.com</url></mirror></mirrors></settings>|' ~/.m2/settings.xml
132+
sed -i 's|</settings>|<servers><server><id>echo-repo</id><username></username><password>'"$ECHO_LIBRARIES_ACCESS_KEY"'</password></server></servers><mirrors><mirror><id>echo</id><mirrorOf>*</mirrorOf><url>https://maven.echohq.com</url></mirror></mirrors></settings>|' ~/.m2/settings.xml
133+
env:
134+
ECHO_LIBRARIES_ACCESS_KEY: ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
131135

132136
- name: Update the POM version.
133137
run: mvn -B versions:set -DnewVersion="$RELEASE_VERSION" --file pom.xml -DskipTests

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ docker-compose.override.yml
3232
#################################
3333
Thumbs.db
3434
.directory
35-
.DS_Store
35+
.DS_Store
36+
/.vscode

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

pom.xml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,14 +211,32 @@
211211
</plugins>
212212
</build>
213213

214+
<pluginRepositories>
215+
<pluginRepository>
216+
<id>echo-repo</id>
217+
<url>https://maven.echohq.com</url>
218+
</pluginRepository>
219+
</pluginRepositories>
214220

215221
<distributionManagement>
216222
<repository>
217-
<id>central</id>
218-
<url>https://central.sonatype.com/api/v1/publish</url>
223+
<id>echo-repo</id>
224+
<url>https://maven.echohq.com</url>
219225
</repository>
220226
</distributionManagement>
221227

228+
<repositories>
229+
<repository>
230+
<id>echo-repo</id>
231+
<url>https://maven.echohq.com</url>
232+
<releases>
233+
<enabled>true</enabled>
234+
</releases>
235+
<snapshots>
236+
<enabled>false</enabled>
237+
</snapshots>
238+
</repository>
239+
</repositories>
222240

223241
<licenses>
224242
<license>

src/main/resources/cx-linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:776d9864c0104e1d0023641ef931bd1c58478cf56768ce77f2bfbfd6e9e64493
3-
size 80568482
2+
oid sha256:d76d1d464af46b0dc5976f8c79560344d86e1641b6eb1959e7a8120f5eab7293
3+
size 83103906

src/main/resources/cx-linux-arm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d40b3cfb9f930e96a9d6b494d4c7b9cd98e3bb857e55a0f55c92d764bb8c3c1a
3-
size 75235490
2+
oid sha256:19f2a49ce38731f078fc7e17e92fdde86e0ba43cd61b0cd9a89636308b9710e5
3+
size 77529250

src/main/resources/cx-mac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:df4a2d6b72936afa65df8730f0ee491f6d518286421063f50df2e48d3d5b56f9
3-
size 160422432
2+
oid sha256:2a777f54cae91dc22e27dead84734ef5e84107011c9ffde441be988b9c25ac86
3+
size 165550656

src/main/resources/cx.exe

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:c7227ac9dd89f344c12629d367774a2428595b3daff0a2e710981d924f13dbf4
3-
size 82488128
2+
oid sha256:8c9bf6f587910590eebde2364f19c4884f814561afbcdfcc9be3f038fdfc1199
3+
size 85082432

0 commit comments

Comments
 (0)