Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch the os.ModePerm permissions in os.WriteFile #1138

Merged
merged 2 commits into from
May 14, 2024

Conversation

ccojocar
Copy link
Member

fixes #1126

…Perm permissions

Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
@ccojocar ccojocar merged commit 6fbd381 into securego:master May 14, 2024
6 checks passed
@ccojocar ccojocar deleted the g306_os_modeperm branch May 14, 2024 13:34
andrzej-stencel added a commit to open-telemetry/opentelemetry-go-build-tools that referenced this pull request May 28, 2024
This rule was updated to check for `os.ModePerm` in v1.58.2:
securego/gosec#1138.
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.

G306 can be easily bypassed with os.ModePerm
1 participant