-
Notifications
You must be signed in to change notification settings - Fork 47
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
Create new role for sigstore-bot in root-signing-staging #395
Create new role for sigstore-bot in root-signing-staging #395
Conversation
* Role allows bypassing branch protections * This replaces the use of a separate review bot * Plan is to test this out in root-signing-staging, and later apply same structure to root-signing Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
github-sync 118 is merged, thanks cpanato. The newest run (using github-sync adec712) still fails the same way: So there has to be some problem in the code or this PR still. I will look into it. |
yes, i will try to look on that as well |
The parser is expecting the top level field to be "customRoles": I thought it would be "repositoryRoles" based on Config.go:
Don't ask why I used two different names -- that was not really intentional just a result of GitHub docs using two names. I still thought the current setup would work... |
Oh I am missing something in the parser code as well: |
🍹
|
The PR in github-sync is needed before the preview should show anything as my yaml config change is currently not actually appended to pulumi config: |
The name is now consistently customRoles everywhere. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
In pulumi args permission "push" usually seems to mean Github role "write"... but that does not work for custom roles base role. Use 'write' as the base role. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
b9df5ca
to
83c6756
Compare
Well the change seems to have happened:
I'm happy to try this out and see what happens in root-signing-staging... Marking this ready for review. CC @haydentherapper There's a lot of churn in the log that seems unrelated but that I don't understand:
is that expected? |
All the changes are because there’s a bug right now, where the last few changes haven’t been synced (see the failure on the last commit at HEAD) |
pulumi preview now looks like expected after #397 |
re-run the job and now looks better :) |
Can someone approve and merge now? |
|
@jku we might have to split this PR into two. I think the error is because the role does not yet exist, so the script fails to assign the new role even though it’s created later in the script. Wish pulumi had a way to define dependents… |
I can do that but
So an alternative we could try (unless there's a danger I don't see) is to just re-run this deployment: the custom role now seems to exist in GitHub so if the rest of the code is correct, it should now go through)... EDIT: still failing so there is a problem in my code... |
This is a revert of half of sigstore#395. 'pulumi up' fails with this: 422 Role `write-with-bypass` is not available for the sigstore/root-signing-staging repository. I'm not sure why the custom role is not found. Let's revert this and I will investigate. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
This is a revert of half of #395. 'pulumi up' fails with this: 422 Role `write-with-bypass` is not available for the sigstore/root-signing-staging repository. I'm not sure why the custom role is not found. Let's revert this and I will investigate. Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
See sigstore/github-sync#117 for more context. This is a draft until sigstore/github-sync#118 is merged.