Skip to content

Commit

Permalink
gpg fix
Browse files Browse the repository at this point in the history
  • Loading branch information
surminus committed Aug 10, 2023
1 parent 21452c4 commit eadeb33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/apt.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (a *Apt) receiveSigningKey(log *viaduct.Logger) error {

// Ensure that the key is deleted from GPG
defer func() {
command = []string{"gpg", "--delete-keys", a.SigningKey}
command = []string{"gpg", "--delete-keys", "--yes", a.SigningKey}
cmd = exec.Command("bash", "-c", strings.Join(command, " "))
cmd.Env = []string{"DEBIAN_FRONTEND=noninteractive"}
cmd.Run()

Check failure on line 253 in resources/apt.go

View workflow job for this annotation

GitHub Actions / golangci-lint

Error return value of `cmd.Run` is not checked (errcheck)

Check failure on line 253 in resources/apt.go

View workflow job for this annotation

GitHub Actions / golangci-lint

Error return value of `cmd.Run` is not checked (errcheck)
Expand Down

0 comments on commit eadeb33

Please sign in to comment.