another security issue found by sonarqube (might need to extend later)
This commit is contained in:
parent
2f207a274a
commit
621966d812
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ export const getCommitHash = () => {
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
return childProcess
|
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()
|
.toString()
|
||||||
.trim()
|
.trim()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue