Skip to content

fix: make cached changelogs readable - #153

Merged
wagoodman merged 1 commit into
anchore:mainfrom
KKamJi98:fix/changelog-cache-file-permissions
Sep 30, 2026
Merged

wagoodman merged 1 commit into
anchore:mainfrom
KKamJi98:fix/changelog-cache-file-permissions

Conversation

@KKamJi98

Copy link
Copy Markdown
Contributor

The cached changelog is written through file.Write, which creates CHANGELOG.md as 0600. That mode ended up in Syft's v1.52.0 release archive. This changes only the cached changelog to 0644 and adds a regression test; the default for other files stays the same.

Related: anchore/syft#5346.

Tested: go test -race ./tasks/release ./tasks/goreleaser ./file -count=1, go vet ./..., golangci-lint run ./.... The full suite's ./ and ./binny tests need network access and fail in the isolated sandbox on both this branch and unmodified main.

AI-assisted; verified locally.

Signed-off-by: KKamJi <xowl5460@naver.com>
@wagoodman
wagoodman merged commit a73064f into anchore:main Sep 30, 2026
21 checks passed
@wagoodman wagoodman added the bug Something isn't working label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants