@@ -37,7 +37,7 @@ func (e *AgeEncryption) Decrypt(ciphertext []byte) ([]byte, error) {
37
37
return e .builtinDecrypt (ciphertext )
38
38
}
39
39
40
- cmd := exec .Command (e .Command , append (e .decryptArgs (), e .Args ... )... ) //nolint:gosec
40
+ cmd := exec .Command (e .Command , append (e .decryptArgs (), e .Args ... )... )
41
41
cmd .Stdin = bytes .NewReader (ciphertext )
42
42
cmd .Stderr = os .Stderr
43
43
return chezmoilog .LogCmdOutput (slog .Default (), cmd )
@@ -50,11 +50,11 @@ func (e *AgeEncryption) DecryptToFile(plaintextAbsPath AbsPath, ciphertext []byt
50
50
if err != nil {
51
51
return err
52
52
}
53
- return os .WriteFile (plaintextAbsPath .String (), plaintext , 0o644 ) //nolint:gosec
53
+ return os .WriteFile (plaintextAbsPath .String (), plaintext , 0o644 )
54
54
}
55
55
56
56
args := append (append (e .decryptArgs (), "--output" , plaintextAbsPath .String ()), e .Args ... )
57
- cmd := exec .Command (e .Command , args ... ) //nolint:gosec
57
+ cmd := exec .Command (e .Command , args ... )
58
58
cmd .Stdin = bytes .NewReader (ciphertext )
59
59
cmd .Stderr = os .Stderr
60
60
return chezmoilog .LogCmdRun (slog .Default (), cmd )
@@ -66,7 +66,7 @@ func (e *AgeEncryption) Encrypt(plaintext []byte) ([]byte, error) {
66
66
return e .builtinEncrypt (plaintext )
67
67
}
68
68
69
- cmd := exec .Command (e .Command , append (e .encryptArgs (), e .Args ... )... ) //nolint:gosec
69
+ cmd := exec .Command (e .Command , append (e .encryptArgs (), e .Args ... )... )
70
70
cmd .Stdin = bytes .NewReader (plaintext )
71
71
cmd .Stderr = os .Stderr
72
72
return chezmoilog .LogCmdOutput (slog .Default (), cmd )
@@ -83,7 +83,7 @@ func (e *AgeEncryption) EncryptFile(plaintextAbsPath AbsPath) ([]byte, error) {
83
83
}
84
84
85
85
args := append (append (e .encryptArgs (), e .Args ... ), plaintextAbsPath .String ())
86
- cmd := exec .Command (e .Command , args ... ) //nolint:gosec
86
+ cmd := exec .Command (e .Command , args ... )
87
87
cmd .Stderr = os .Stderr
88
88
return chezmoilog .LogCmdOutput (slog .Default (), cmd )
89
89
}
0 commit comments