Skip to content

Commit ebc2d16

Browse files
Merge pull request #119 from CheckmarxDev/feature/AST-12047-js-java-wrapper-fixing-code-vulnerabilities
Feature/ast 12047 js java wrapper fixing code vulnerabilities
2 parents 3f30e7a + 2b89d0f commit ebc2d16

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
distribution: 'temurin'
3333
server-id: ossrh
3434
server-username: MAVEN_USERNAME
35-
server-password: MAVEN_PASSWORD
35+
server-password: ${{ secrets.OSSRH_TOKEN }}
3636
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
3737
gpg-passphrase: MAVEN_GPG_PASSPHRASE
3838

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ private Execution() {
3131
private static final String FILE_NAME_WINDOWS = "cx.exe";
3232
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
3333
private static final String TEMP_DIR = System.getProperty("java.io.tmpdir");
34+
private static final String MD5_ALGORITHM = "MD5";
3435

3536
private static String executable = null;
3637

@@ -161,7 +162,7 @@ private static String md5(InputStream a) {
161162
String md5 = null;
162163
final byte[] buf = new byte[8192];
163164
try {
164-
MessageDigest md = MessageDigest.getInstance("MD5");
165+
MessageDigest md = MessageDigest.getInstance(MD5_ALGORITHM);
165166
int i;
166167
while ((i = a.read(buf)) != -1) {
167168
md.update(buf, 0, i);

0 commit comments

Comments
 (0)