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

Fix code scanning alert no. 58: Overly permissive file permissions #449

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jordanpadams
Copy link
Member

Fixes https://github.com/NASA-PDS/doi-service/security/code-scanning/58

To fix the problem, we need to change the file permissions to be more restrictive. Specifically, we should set the permissions so that only the owner can read and write the file, and no one else can access it. This can be achieved by changing the mode in the os.chmod function from 0o0664 to 0o0600.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@jordanpadams jordanpadams marked this pull request as ready for review November 14, 2024 01:43
Copy link
Member

@nutjob4life nutjob4life left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable

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.

2 participants