-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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: False positive report GHSA-2jcg-qqmg-46q6 #37269
Conversation
WalkthroughThe pull request introduces modifications to the Dockerfile aimed at enhancing the build process and error handling. Key changes include the adoption of heredoc syntax for improved script readability and the implementation of Changes
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🔇 Additional comments (3)Dockerfile (3)
The addition of
The systematic approach to permission management and security hardening is commendable:
The removal of the test folder effectively addresses the false positive security report while maintaining only production dependencies. Let's verify no other test folders exist that might trigger similar issues: Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
cd ./utils | ||
npm install --only=prod | ||
npm install --only=prod -g . | ||
rm -rf utils/node_modules/resolve/test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the line that's fixing the problem. Rest of the changes are a refactor to make code more readable.
Description
Some scanner tools like Syft and Grype are reporting a scary false positive at GHSA-2jcg-qqmg-46q6, on the following file in the Docker image:
The advisory itself isn't applicable to Appsmith, and this above package is not used in the product at all. This PR deletes this
test
folder so this false positive is immediately taken out.Nevertheless, we shouldn't even have the
node_modules
folder in the Docker image, and we should be "building"appsmithctl
instead. That's part of a larger effort to improve/fixappsmithctl
and will be coming up in future PRs.The SBOM entry for the package in Syft’s proprietary format
Reported by a user.
/test sanity
Communication
Should the DevRel and Marketing teams inform users about this change?
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/11715737322
Commit: 42aa69c
Cypress dashboard.
Tags:
@tag.Sanity
Spec:
Thu, 07 Nov 2024 03:26:39 UTC
Summary by CodeRabbit