Skip to content

Commit d5405b1

Browse files
committed
nosec
1 parent 189b051 commit d5405b1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func (dg DefaultGitter) GetTreeHash(repo, tag string) string {
116116

117117
// GetClosestTag returns the closest semver tag for the given commit hash.
118118
func (dg DefaultGitter) GetClosestTag(repo, commit string) (tag string) {
119-
_ = exec.Command(string(dg), "-C", repo, "fetch", "--unshallow").Run()
119+
_ = exec.Command(string(dg), "-C", repo, "fetch", "--unshallow").Run() //#nosec G204
120120
if b, _ := exec.Command(string(dg), "-C", repo, "describe", "--tags", "--match=v[0-9]*", "--abbrev=0", commit).Output(); len(b) > 0 /* #nosec G204 */ {
121121
return strings.TrimSpace(string(b))
122122
}

0 commit comments

Comments
 (0)