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

Closed
wants to merge 1 commit into 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

I take it back—I thought this looked familiar, and it should be rejected for the same reason as the comment left there

@nutjob4life nutjob4life self-requested a review November 18, 2024 17:17
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.

We should reject this as it's a duplicate of this PR and for the same reason.

@jordanpadams
Copy link
Member Author

Same as #448, closing code scan result as wontfix

@jordanpadams jordanpadams deleted the alert-autofix-58 branch December 2, 2024 17:40
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