Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc47b437

Browse files
authored
chore: comment no-lint on gosec for unsafe zip extracting (#20741)
1 parent7c8deaf commitc47b437

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎provisionersdk/tfpath/tfpath.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (l Layout) ExtractArchive(ctx context.Context, logger slog.Logger, fs afero
104104
returnxerrors.Errorf("refusing to extract to non-local path")
105105
}
106106

107-
// nolint: gosec //TODO: Use relative paths insidetheworkdir only.
107+
// nolint: gosec //Safe to no-lint becausethefilepath.IsLocal check above.
108108
headerPath:=filepath.Join(l.WorkDirectory(),header.Name)
109109
if!strings.HasPrefix(headerPath,filepath.Clean(l.WorkDirectory())) {
110110
returnxerrors.New("tar attempts to target relative upper directory")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp