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

Do not require to run actions/setup-node #475

Closed
ademidoff opened this issue Mar 10, 2022 · 2 comments · Fixed by #476
Closed

Do not require to run actions/setup-node #475

ademidoff opened this issue Mar 10, 2022 · 2 comments · Fixed by #476
Assignees
Labels
enhancement New feature or request

Comments

@ademidoff
Copy link

ademidoff commented Mar 10, 2022

Hey,

This is to make you aware that some of your customers may have disabled running actions other than those cloned to their own organization. In our use case, for security reasons we consider all third-party actions to be unsafe, therefore we clone an action we need to run in our GITHUB CI environment, which allows us to only run a select number of actions.

Therefore, in our case it's impossible to run readmeio/rdme since it depends on setup-node, so we see this error message:

Error: Bad request - actions/setup-node@v2 is not allowed to be used in <company_name>. Actions in this
workflow must be within a repository owned by <company_name> or match the following: actions/setup-node@v2.

The solution may be quite trivial: given that both NodeJS and npm are provisioned by default, you hardly even need to run that action.

Will you consider not using any third-party actions please?

@kanadgupta kanadgupta added the bug Something isn't working label Mar 10, 2022
@kanadgupta kanadgupta self-assigned this Mar 10, 2022
@kanadgupta kanadgupta added enhancement New feature or request and removed bug Something isn't working labels Mar 10, 2022
@kanadgupta
Copy link
Member

Hi @atymchuk!

To provide a bit of background on why we originally did this: we wanted to guarantee that the runner was using a version of Node.js that supported our package-lock.json, which is lockfileVersion@2 (i.e. Node v16+).

I did some digging this morning and it appears that ubuntu-latest has been shipping with Node v16 for some time now 🎉

I've opened up #476, which removes the actions/setup-node step from our workflow.

Thanks for calling this out!

-Kanad

@ademidoff
Copy link
Author

@kanadgupta This is a big win for folks like us, we appreciate it very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants