Skip to content

Commit cb4cde1

Browse files
committed
Change hash function for diff anchor to sha256
1 parent 6b1d903 commit cb4cde1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/githubHelper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@ export class GithubHelper {
13811381
line = position.old_line;
13821382
}
13831383
const crypto = require('crypto');
1384-
const hash = crypto.createHash('md5').update(path).digest('hex');
1384+
const hash = crypto.createHash('sha256').update(path).digest('hex');
13851385
slug = `#diff-${hash}${side}${line}`;
13861386
}
13871387
// Mention the file and line number. If we can't get this for some reason then use the commit id instead.

0 commit comments

Comments
 (0)