Skip to content

Commit 5273dcb

Browse files
Merge branch 'main' into Other/AST-104240
2 parents 0549346 + 1eb3c6d commit 5273dcb

File tree

9 files changed

+35
-28
lines changed

9 files changed

+35
-28
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
with:
101101
java-version: '11'
102102
distribution: 'temurin'
103-
server-id: ossrh
103+
server-id: central
104104
server-username: MAVEN_USERNAME
105105
server-password: MAVEN_PASSWORD
106106
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
@@ -153,4 +153,4 @@ jobs:
153153
cli_version: ${{ needs.release.outputs.CLI_VERSION }}
154154
is_cli_release: false
155155
is_java_release: true
156-
secrets: inherit
156+
secrets: inherit

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Each line is a file pattern followed by one or more owners
33

44
# Specify the default owners for the entire repository
5-
* @greensd4 @AlvoBen @pedrompflopes
5+
* @cx-anurag-dalke @cx-anand-nandeshwar @cx-atish-jadhav

checkmarx-ast-cli.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.3.27
1+
2.3.28

pom.xml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -165,17 +165,17 @@
165165
</executions>
166166
</plugin>
167167
<plugin>
168-
<groupId>org.sonatype.plugins</groupId>
169-
<artifactId>nexus-staging-maven-plugin</artifactId>
170-
<version>1.6.13</version>
168+
<groupId>org.sonatype.central</groupId>
169+
<artifactId>central-publishing-maven-plugin</artifactId>
170+
<version>0.8.0</version>
171171
<extensions>true</extensions>
172172
<configuration>
173-
<serverId>ossrh</serverId>
174-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
175-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
176-
<stagingProgressTimeoutMinutes>10</stagingProgressTimeoutMinutes>
173+
<publishingServerId>central</publishingServerId>
174+
<autoPublish>true</autoPublish> <!-- Optional -->
177175
</configuration>
178176
</plugin>
177+
178+
179179
<plugin>
180180
<groupId>org.apache.maven.plugins</groupId>
181181
<artifactId>maven-gpg-plugin</artifactId>
@@ -199,17 +199,15 @@
199199
</plugins>
200200
</build>
201201

202+
202203
<distributionManagement>
203-
<snapshotRepository>
204-
<id>ossrh</id>
205-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
206-
</snapshotRepository>
207204
<repository>
208-
<id>ossrh</id>
209-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
205+
<id>central</id>
206+
<url>https://central.sonatype.com/api/v1/publish</url>
210207
</repository>
211208
</distributionManagement>
212209

210+
213211
<licenses>
214212
<license>
215213
<name>MIT License</name>
@@ -230,8 +228,8 @@
230228

231229
<developers>
232230
<developer>
233-
<name>Jay Nanduri</name>
234-
<email>jay.nanduri@checkmarx.com</email>
231+
<name>Rahul Pidde</name>
232+
<email>rahul.pidde@checkmarx.com</email>
235233
<organization>Checkmarx</organization>
236234
<organizationUrl>https://www.checkmarx.com/</organizationUrl>
237235
</developer>

src/main/java/com/checkmarx/ast/wrapper/CxConfig.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import lombok.Data;
66
import lombok.Setter;
77
import org.apache.commons.lang3.StringUtils;
8+
89
import java.util.ArrayList;
910
import java.util.List;
1011
import java.util.regex.Matcher;
@@ -33,7 +34,15 @@ public void setAdditionalParameters(String additionalParameters) {
3334
List<String> toArguments() {
3435
List<String> commands = new ArrayList<>();
3536

36-
if (StringUtils.isNotBlank(getApiKey())) {
37+
if (StringUtils.isNotBlank(getClientId()) && StringUtils.isNotBlank(getApiKey())) {
38+
/*
39+
* Added dynamic client-id support for refresh_token grant flow
40+
*/
41+
commands.add(CxConstants.CLIENT_ID);
42+
commands.add(getClientId());
43+
commands.add(CxConstants.API_KEY);
44+
commands.add(getApiKey());
45+
} else if (StringUtils.isNotBlank(getApiKey())) {
3746
commands.add(CxConstants.API_KEY);
3847
commands.add(getApiKey());
3948
} else if (StringUtils.isNotBlank(getClientId()) && StringUtils.isNotBlank(getClientSecret())) {

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:21771d942fb89bbd90c919037cda83447a1203cd326830434337c32a3492dc0f
3-
size 75620536
2+
oid sha256:1d2436e1fef7dd4841a003697702e52e2cdc3f3fba74e2196cebe5d7992f9d4f
3+
size 76206264

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:9226496082c2c9ec4f4b0849bdabd519c19199c7b351fce85c30ebd92433664b
3-
size 72155320
2+
oid sha256:e41b066ccc5dd4281a134518b3ece5ac6c17f229c9a7844493371ac3936a94a4
3+
size 72745144

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:8ce7a37c2b110f904854ec9fad0af04fd23396ed752547892b414171dd85f2c7
3-
size 152195760
2+
oid sha256:4764f25769b820906cf09c6b3281f2b1df7c021f9063aef983f2aac0c48e39bc
3+
size 153324992

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:4bbeacde274d8f70bc971071523ef2885bcaba7592a8f9108fe94af719028eac
3-
size 77585792
2+
oid sha256:7968c2c1ec4e6264e91324f649f2bb44db04e53ce20f90f3a77c56abf2525664
3+
size 78184384

0 commit comments

Comments
 (0)