Skip to content

Commit d03d7bd

Browse files
authored
Added the param tenant and updated the executables (#4)
* Added the param tenant and updated the executables, changed the version from 1.0.2 to 1.0.3
1 parent a486a0a commit d03d7bd

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
with:
2424
java-version: 8
2525
- name: Copy executable
26-
run: cp ./src/main/resources/cx-exe /tmp/
26+
run: cp ./src/main/resources/cx-linux /tmp/
2727
- name: Permissions to executable
28-
run: sudo chmod 777 /tmp/cx-exe
28+
run: sudo chmod 777 /tmp/cx-linux
2929
- name: Run tests with Maven
3030
env:
3131
CX_CLIENT_ID: ${{ secrets.CLIENT_ID}}
3232
CX_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
3333
CX_BASE_URI : ${{ secrets.BASE_URI }}
34-
PATH_TO_EXECUTABLE: /tmp/cx-exe
34+
PATH_TO_EXECUTABLE: /tmp/cx-linux
3535
run: mvn -B test --file pom.xml

.github/workflows/maven-publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ jobs:
2525
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
2626
settings-path: ${{ github.workspace }} # location for the settings.xml file
2727
- name: Copy executable
28-
run: cp ./src/main/resources/cx-exe /tmp/
28+
run: cp ./src/main/resources/cx-linux /tmp/
2929
- name: Permissions to executable
30-
run: sudo chmod 777 /tmp/cx-exe
30+
run: sudo chmod 777 /tmp/cx-linux
3131
- name: Publish to GitHub Packages Apache Maven
3232
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml -DskipTests
3333
env:
3434
CX_CLIENT_ID: ${{ secrets.CLIENT_ID}}
3535
CX_CLIENT_SECRET: ${{ secrets.CLIENT_SECRET}}
3636
CX_BASE_URI : ${{ secrets.BASE_URI }}
37-
PATH_TO_EXECUTABLE: /tmp/cx-exe
37+
PATH_TO_EXECUTABLE: /tmp/cx-linux
3838
GITHUB_TOKEN: ${{ github.token }}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.checkmarx.ast</groupId>
66
<artifactId>ast-cli-java-wrapper</artifactId>
7-
<version>1.0.2</version>
7+
<version>1.0.3</version>
88
<packaging>jar</packaging>
99

1010
<dependencies>

src/main/java/com/checkmarx/ast/CxAuth.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private URI packageExecutable() throws IOException, URISyntaxException {
6363
} else if (osName.toLowerCase().contains("mac")) {
6464
executablePath = getFile(uri, "cx-mac");
6565
} else {
66-
executablePath = getFile(uri, "cx-exe");
66+
executablePath = getFile(uri, "cx-linux");
6767
}
6868
return executablePath;
6969

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package com.checkmarx.ast;
22

33
public enum CxParamType {
4-
S, V, G, PROJECT_NAME, SCAN_TYPES, SAST_PRESET_NAME, FILTER, DIRECTORY, ADDITIONAL_PARAMETERS, AGENT, SOURCES
4+
S, V, G, PROJECT_NAME, SCAN_TYPES, SAST_PRESET_NAME, FILTER, DIRECTORY, ADDITIONAL_PARAMETERS, AGENT, SOURCES, TENANT
55
}
Binary file not shown.

src/main/resources/cx-mac

4.06 KB
Binary file not shown.

src/main/resources/cx.exe

-2.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)