Repository navigation
fix: config file permissions - #7387
Merged
Merged
Conversation
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
3 of 4 tasks
robertolopezlopez
force-pushed
the
CLI-1863
branch
3 times, most recently
from
October 22, 2026 15:48
ff41736 to
72b8a97
Compare
robertolopezlopez
force-pushed
the
CLI-1863
branch
from
October 23, 2026 13:35
72b8a97 to
e9ee053
Compare
andrewrobinsonhodges-snyk
marked this pull request as ready for review
October 27, 2026 16:28
andrewrobinsonhodges-snyk
approved these changes
Oct 27, 2026
andrewrobinsonhodges-snyk
enabled auto-merge
October 27, 2026 16:29
Contributor
This comment has been minimized.
This comment has been minimized.
Unblocks the Snyk Open Source gate in the code-analysis CI job, which flags SNYK-GOLANG-GITHUBCOMKLAUSPOSTCOMPRESSFSE-21755459, SNYK-GOLANG-GITHUBCOMKLAUSPOSTCOMPRESSHUFF0-21755460 and SNYK-GOLANG-GITHUBCOMGOJOSEGOJOSEV4-21755478 in both Go modules. Same remediation as #7431 on main. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
PR Reviewer Guide 🔍
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Submission Checklist
are release-note ready, emphasizing
what was changed, not how.
What does this PR do?
It integrates changes from snyk/go-application-framework#819 - which itself does chmod on config files for security reasons.
It also bumps the transitive dependencies
github.com/klauspost/compress(1.19.2 → 1.20.2) andgithub.com/go-jose/go-jose/v4(4.1.4 → 4.1.6) incliv2andcliv2-privateto clear the HIGH advisories that block thecode-analysisOpen Source gate (same remediation as #7431 on main).Where should the reviewer start?
How should this be manually tested?
Expected:
What's the product update that needs to be communicated to CLI users?
Note
Medium Risk
Changes on-disk permissions for local config that may hold API tokens; behavior is intentional hardening but can surprise users who relied on world-readable config files.
Overview
Bumps
github.com/snyk/go-application-frameworkfrom v0.34.1 to v0.34.2 incliv2andcliv2-private, with matchinggo.sumupdates. That release pulls in config-store behavior from go-application-framework#819: when the CLI loads config (e.g.snyk.json), overly permissive modes are tightened to 600 while stricter read-only modes (400 / 440) are left unchanged.The diff has no CLI source edits—only module lockfile changes. Transitive bumps include
go-jose/v4(4.1.4 → 4.1.6) andklauspost/compress(1.19.2 → 1.20.2).Reviewed by Cursor Bugbot for commit b95d86f. Bugbot is set up for automated code reviews on this repo. Configure here.