Is there an API to update a secret? #38315
-
How are you running Renovate?A Mend.io-hosted app If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Github Please tell us more about your question or problemSince encrypted secrets went away, we've had to add a separate npm token to several dozen repos. I'm trying to rotate that token (and make it more granular) and dreading the prospect of a lot of clicking and pasting. Is there a way to script this? This isn't an org-level secret, since I don't have access to that level (and it wouldn't make sense for this kind of thing). Logs (if relevant)Logs |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
We (Mend) did actually end up creating a couple of APIs for this off the back of the work to migrate for many of our Community / Enterprise Cloud users: https://api-docs.mend.io/developer-platform/1.0 It looks like we haven't yet got a link to this from https://docs.renovatebot.com/mend-hosted/migrating-secrets/, so I'll get a PR raised for it now Edit: I've raised #38318 and would welcome feedback! |
Beta Was this translation helpful? Give feedback.
We (Mend) did actually end up creating a couple of APIs for this off the back of the work to migrate for many of our Community / Enterprise Cloud users: https://api-docs.mend.io/developer-platform/1.0
It looks like we haven't yet got a link to this from https://docs.renovatebot.com/mend-hosted/migrating-secrets/, so I'll get a PR raised for it now☺️
Edit: I've raised #38318 and would welcome feedback!