Skip to content

Commit e08c384

Browse files
chore: fix lint
1 parent 00927f8 commit e08c384

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/git/remote.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
package git
33

44
import (
5+
"context"
56
"os/exec"
67
"regexp"
78
"strings"
@@ -16,7 +17,7 @@ var repoFullNamePattern = regexp.MustCompile(`github\.com[:/]([^/]+/[^/.\s]+?)(?
1617
// GetRemoteFullName returns the "owner/repo" for the git remote origin in the
1718
// given directory, or empty string if it cannot be determined.
1819
func GetRemoteFullName(dir string) string {
19-
cmd := exec.Command("git", "-C", dir, "remote", "get-url", "origin") // #nosec G204 -- dir comes from os.Getwd()
20+
cmd := exec.CommandContext(context.Background(), "git", "-C", dir, "remote", "get-url", "origin") // #nosec G204 -- dir comes from os.Getwd()
2021
out, err := cmd.Output()
2122
if err != nil {
2223
return ""

0 commit comments

Comments
 (0)