-
Notifications
You must be signed in to change notification settings - Fork 67
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
[BUG]: The placeholders are not replaced for the method getEnvironmentPublicKey #437
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
this should be |
@gr2m Yes, that is the endpoint, "GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key" from what I see in the error log, only the environment_name is replaced. Please have a look at the provided runkit link. |
ran into the same issue while using actions/github-script. I cannot get the environment public key:
Workaround-await github.rest.actions.getEnvironmentPublicKey({
+await github.request("GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key", { -await github.actions.createOrUpdateEnvironmentSecret({
+await github.request("PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}", { |
What happened?
Calling the getEnvironmentPublicKey should return the public key for a specific environment, instead a 404 error code is returned.
and it can be seen from the error stack that the placeholders for owner and repo are not replaced.
And example can be found here: https://runkit.com/bogdanmanate-kion/666985abdb0e230008ad9ce7
Versions
Octokitjs 20.0.2, Node v18.11.0
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: