About organizations and secrets #4691
Replies: 1 comment 9 replies
-
The organisations are created if you enable a repo owned by that org. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I see in the documentation that there are 3 levels of secrets:
I have added secrets at the repo level, but now I want to move them to the organization level. I figured since currently my woodpecker server is configured with Oauth from Github using a Github organization, it'll be added by default.
But when I checked in settings I got this:
So, there are no organizations and when I go into the API I get these endpoints:
I see no way of adding an organization...
What I find even weirder is that if I go to settings and check the console, I get the response from the users request and both users have an org_id:
But if I try making calls to those organizations on the swagger api I get:
So the name is the same as the user for that name and we have a "is_user" flag set to true, so what I get from that is if you log in with Github and the user is a Github user, it will create an organization with the same name.
But I noticed that I have orgs with ids 1 and 3, so there should be a 2. I tried the request and got this:
This one has the same name as the organization which the two users belong to. It also includes a forge_id... But I guess the issue is that "is_user" is set to true when it should be false. I guess I did something wrong when adding everything, how do I fix things so that this last org gets the "is_user" set to false?
Beta Was this translation helpful? Give feedback.
All reactions