another security issue found by sonarqube (might need to extend later)

This commit is contained in:
Henry Jameson 2026-08-05 19:35:58 +03:00
commit 621966d812

View file

@ -7,7 +7,7 @@ export const getCommitHash = () => {
} else {
try {
return childProcess
.execSync('git rev-parse --short HEAD')
.execSync('PATH=/usr/bin:/bin:/usr/local/bin:/sbin:/usr/sbin git rev-parse --short HEAD')
.toString()
.trim()
} catch (e) {