Skip to content

fix(gosec): use 0750 instead of 0755 for MkdirAll (G301)#262

Merged
snakeice merged 1 commit into
mainfrom
fix/gosec-g301-mkdir-permissions
Jul 16, 2026
Merged

fix(gosec): use 0750 instead of 0755 for MkdirAll (G301)#262
snakeice merged 1 commit into
mainfrom
fix/gosec-g301-mkdir-permissions

Conversation

@snakeice

Copy link
Copy Markdown
Member

Fixes gosec G301 in Security Scan CI job.

The //nolint:gosec directive only works for golangci-lint, not for the standalone gosec (securego/gosec@master) used in the Security Scan CI job. Changing 0755 to 0750 satisfies both.

gosec G301 expects directory permissions 0750 or less.
The //nolint:gosec directive only works for golangci-lint, not for
the standalone gosec Security Scan CI job.
@snakeice
snakeice merged commit a06efa1 into main Jul 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant