[StepSecurity] Apply security best practices#57535
[StepSecurity] Apply security best practices#57535step-security-bot wants to merge 1 commit intonodejs:mainfrom
Conversation
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
|
Review requested:
|
RafaelGSS
left a comment
There was a problem hiding this comment.
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:
|
targos
left a comment
There was a problem hiding this comment.
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. |
|
Closing in favour of #57788 |
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 support@stepsecurity.io. To create such PRs, please visit https://app.stepsecurity.io/securerepo.
Signed-off-by: StepSecurity Bot bot@stepsecurity.io