-
Notifications
You must be signed in to change notification settings - Fork 6
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
Secret created but empty #21
Comments
Thank you for opening this ISSUE. We'll give you a return ASAP 👍 |
Hi @samyKhezandji , how are you doing? You're executing this formula: https://github.com/GuillaumeFalourd/formulas-github/tree/master/github/add/secret, right? It may be related to the |
Hi @GuillaumeFalourd
Normally, when the secret is created with it value the |
Ok, thank you for sharing the workflow 👍🏼 For what I observed looking at the Github API documentation for Creating Secrets and Getting a repository public key, the only things that changed since I implemented this code is the header referring to the Github API Version. Solution: I made it work here adding this Github API Version header to both requests 👍🏼 The workflow I used is quite similar to yours, and can be found here Could you check it also works in your case @samyKhezandji ? |
Hello @GuillaumeFalourd Thank you for your answer and your proposed solution. What kind of PAT token you used ? Actually I tried with the classic one and the Beta version but the result is the same : not working :( I'm trying to investigate more. |
Is the repository public so I can have a look at it directly? |
I created a public repository in order to share it with you. This is the link to the repository |
I made a fork where I added a secret with all permissions, and it doesn't work indeed. I have no idea why 🤔 |
After testing a bit more here, it seems the workflow creates the secret with an empty value the first time, but fill the secret with the value as expected the second time it is executed. Could you check? |
Yes I confirm that the second time it is executed the secret is create with its value. I don't understand why but I can eventualy execute the function two times each time I create a secret :/ |
I asked the question on StackOverflow, let's see if someone has any idea how to solve this. |
Hi,
Actually I noticed that when I execute your function that use GitHub API rest in order to create a secret, this creates the secret but it is empty. I'm facing this issue for several weeks and don't know why secrets are just empty when they are created by API rest.
The text was updated successfully, but these errors were encountered: