-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
[StepSecurity] Apply security best practices #57535
base: main
Are you sure you want to change the base?
[StepSecurity] Apply security best practices #57535
Conversation
Signed-off-by: StepSecurity Bot <[email protected]>
Review requested:
|
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.
As discussed in the last security meeting, LGTM.
Waiting for @nodejs/security-wg feedback before landing it.
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
The run generates a warning:
|
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.
Blocking because I don't want us to introduce a mandatory workflow that takes more than one hour on every PR.
Do you mean the dependency-review? Just want to make sure I understand to discuss this in the next security-wg meeting. |
No, I mean the CodeQL (cpp). It's still running here after 1h32min: https://github.com/nodejs/node/actions/runs/13927045256/job/38974215974?pr=57535 |
@targos We discussed it in today's security-wg meeting, and a feasible option would be changing this workflow to run on a nightly (once per day) basis and not blocking any PR until we have trust in this workflow run. The security team can take action to review the runs and make sure things are working as expected. How does it sound to you? |
As part of this split effort, is there an option to consider the possibility of splitting the c++ workflow, so we can use the manual build mode to build cache around and maybe speed up things? (if we see value on keeping the workflow). |
Sounds good to me. My concern is about avoiding friction for regular pull requests. |
Summary
This pull request is created by StepSecurity at the request of @RafaelGSS. Please merge the Pull Request to incorporate the requested changes. Please tag @RafaelGSS on your message if you have any questions related to the PR.
Security Fixes
Detect Vulnerabilities with SAST Workflow
Static Code Analysis (also known as Source Code Analysis) is usually performed as part of a Code Review (also known as clear-box testing) and is carried out at the Implementation phase of a Security Development Lifecycle (SDL). Static Code Analysis commonly refers to the running of Static Code Analysis tools that attempt to highlight possible vulnerabilities within ‘static’ (non-running) source code by using techniques such as Taint Analysis and Data Flow Analysis.
Add Dependency Review Workflow
The Dependency Review Workflow enforces dependency reviews on your pull requests. The action scans for vulnerable versions of dependencies introduced by package version changes in pull requests, and warns you about the associated security vulnerabilities. This gives you better visibility of what's changing in a pull request, and helps prevent vulnerabilities being added to your repository.
Feedback
For bug reports, feature requests, and general feedback; please email [email protected]. To create such PRs, please visit https://app.stepsecurity.io/securerepo.
Signed-off-by: StepSecurity Bot [email protected]