Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
distribution: 'temurin'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
server-password: ${{ secrets.OSSRH_TOKEN }}
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/checkmarx/ast/wrapper/Execution.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ private Execution() {
private static final String FILE_NAME_WINDOWS = "cx.exe";
private static final String LINE_SEPARATOR = System.getProperty("line.separator");
private static final String TEMP_DIR = System.getProperty("java.io.tmpdir");
private static final String MD5_ALGORITHM = "MD5";

private static String executable = null;

Expand Down Expand Up @@ -161,7 +162,7 @@ private static String md5(InputStream a) {
String md5 = null;
final byte[] buf = new byte[8192];
try {
MessageDigest md = MessageDigest.getInstance("MD5");
MessageDigest md = MessageDigest.getInstance(MD5_ALGORITHM);
int i;
while ((i = a.read(buf)) != -1) {
md.update(buf, 0, i);
Expand Down