Skip to content

Commit

Permalink
chore: Ignore invalid gosec finding.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Apr 22, 2024
1 parent 2830c95 commit 2a89d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tailer/logstream/pipestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func pipeOpen(pathname string) (*os.File, error) {
return os.Stdin, nil
}
// Open in nonblocking mode because the write end of the pipe may not have started yet.
return os.OpenFile(pathname, os.O_RDONLY|syscall.O_NONBLOCK, 0o600)
return os.OpenFile(pathname, os.O_RDONLY|syscall.O_NONBLOCK, 0o600) // #nosec G304 -- path already validated by caller
}

func (ps *pipeStream) stream(ctx context.Context, wg *sync.WaitGroup, waker waker.Waker, _ os.FileInfo) error {
Expand Down

0 comments on commit 2a89d86

Please sign in to comment.
  NODES
Community 1
Intern 1
Note 1
os 15
text 3
Users 1
web 1