gittuf/pkg
lakshit verma a4cbba9b15
gitinterface: placate gosec taint analysis on worktree path reads
golangci-lint (gosec G703) flags the worktree and commondir path reads as
path traversal because it cannot see across the validation functions. Each
resolved path is constrained before use: it must point into an existing
directory that is not the repository's GIT_DIR, and for linked worktrees
the .git entry must in turn reference this repository. Annotate the read
sites to reflect that these are trusted repository-local paths.

Also fix test-only lints from the CI gate: use 0600 file permissions for
temporary files and mark TestGetWorktree parallel at the top level.

Signed-off-by: lakshit verma <vermalucky2004@gmail.com>
2026-08-24 19:50:38 +05:30
..
githash test: add fuzz tests for decoding paths 2026-08-05 09:04:32 +01:00
gitinterface gitinterface: placate gosec taint analysis on worktree path reads 2026-08-24 19:50:38 +05:30
gitstore Introduce gitstore.Storer and make gittuf's core dependency-light 2026-08-03 21:27:49 +01:00
rsl rsl, tuf: stricter validation for entry and metadata fields 2026-08-13 23:13:11 +01:00