How to add encrypted env variable used with yarn 4 #28172
Replies: 5 comments 20 replies
-
encrypted is not allowed in env. use host rules instead of environment variable |
Beta Was this translation helpful? Give feedback.
-
Hi there, Please do not unnecessarily For example, never It's OK to comment in an issue or discussion after multiple days or weeks. But please, still don't Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
Note to myself. Original problem is shown in #14756. However, solutions proposed there did not solve my problem. |
Beta Was this translation helpful? Give feedback.
-
@ced-mos can you clarify if I understand right?
|
Beta Was this translation helpful? Give feedback.
-
Excuse me for the late response. Yes, I read this section. However I have to admit it's not clear for me what exactly I should do. In the documentation it's mentioned that Therefore, could you just explain how I would need to set it up precisely based on my described configuration discussion description including the correct URLs? |
Beta Was this translation helpful? Give feedback.
-
What would you like help with?
I would like help with my configuration
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
Gitlab, Renovate V37.101.0
Please tell us more about your question or problem
Lately we moved your node project to yarn 4 where changes at the configuration had to be done. Now I am not able to make it work with private npm packages and encrypted secrets. From how I understand it what is missing is setting up encrypted env variables, which I was not able to achieve.
To ensure that we don't search for a solution for a wrong approach, here my overall goal:
.yarnrc.yml
)At the moment it's not clear to me if this is just a misconfiguration or I am taking the wrong approach. Therefore, could you help on how I can achieve that? In addition I would like to know if there is a solution with renovate-bot version
37.101.0
or if we need to update? This as I remarked, thatenv
variables configuration did not work with37.101.0
, where I had to update to a newer version like37.232.0
on my local setup. However to change the version I would need to check with the infrastructure team, if this is feasible.Here a minimal example what until now worked without encrypted env variables:
.yarnrc.yml
package.json
renovate.json
From the documentation it was not clear to me, if the env variables should work in combination with the "encrypted" object but this is what I tested, which failed:
Already many thank for your help.
Logs (if relevant)
Error content of created issue with title "Action Required: Fix Renovate Configuration".
Beta Was this translation helpful? Give feedback.
All reactions