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

Would the node-version-file be a security issue? #1224

Closed
LitoMore opened this issue Feb 5, 2025 · 4 comments
Closed

Would the node-version-file be a security issue? #1224

LitoMore opened this issue Feb 5, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@LitoMore
Copy link

LitoMore commented Feb 5, 2025

Sorry for posting the question using a bug template. I didn't find a correct template for submitting questions.

Would the node-version-file be a security issue since contributors can update the Node.js version out of the GitHub Actions YAML file?

A non-first-time contributor can trigger actions without waiting for approval, and changing the running version is possible by creating a PR. My concern is that there may be some vulnerabilities in a specific version of Node.js. This could be a security issue.

Please correct me if I misunderstand the GitHub Actions security strategy above.

@gowridurgad
Copy link

Hi @LitoMore,
Thank you for reporting this issue. We will investigate it and get back to you as soon as we have some feedback.

@florianrusch
Copy link

Just my 5 cents on this topic: For me it's a feature that improves the developer experience (DX). The developers can manage the version they need themselves without having to remember to update the node version within the Github pipelines as well.

I haven't checked the source code, but as far as I know, only specific files are supported. I expect that only the node version is read from these files, which is then used in a URL, SDK, whatever, to get the corresponding node version. If nonsense is entered as the node version in the files, the action should simply throw an error in the sense of Couldn't find node version ‘fooobar’ and let the pipeline fail.

If a contributor enters a different, valid node version, it is the responsibility of the reviewer to ensure that this change was intentional. Whether the PR pipeline ran successfully with the new valid node version or not does not matter here, as IMHO it should not cause any problems.

@Shvernawalker
Copy link

#1224

This was referenced Feb 18, 2025
@lmvysakh
Copy link

Hello @florianrusch,

Thank you for reaching out and sharing your valuable insight with us. We cordially appreciate the support.


Hi @LitoMore,

Thank you for raising this concern! Regarding security concerns, there is no inherent risk in using the node-version-file because:

  1. PR Review Process: All pull requests, including those that change the node-version-file, must go through a thorough review process. This review includes checks for security and compatibility.
  2. Automated Security Checks: Our CI/CD pipeline is configured to run security audits and tests on all proposed changes. Any vulnerabilities introduced by a new Node.js version will be caught during these automated checks.
  3. Approval Requirements: Non-first-time contributors can trigger actions, but any changes to the node-version-file still require approval and review before being merged.

By adhering to these processes, we ensure that any changes to the Node.js version are secure and do not introduce vulnerabilities into the project.

I'll go ahead and close this issue now. If you encounter any further problems or have additional questions, please feel free to open a new issue. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants