-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Make GitHub environment Scaffolder action use auth to resolve reviewers #27796
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
Make GitHub environment Scaffolder action use auth to resolve reviewers #27796
Conversation
Changed Packages
|
Changes the github:environment:create Scaffolder action to request and use a backend auth token when resolving the reviewer entityRefs from the Backstage catalog. This is because previously it would throw a 401 error when backend auth was not disabled. The logic for requesting the token is copied from the existing catalog:fetch action, which needs to do a similar thing. Also slightly clarifies that Backstage entityRefs are expected in the reviewers list for this action. Signed-off-by: Jason Liu <a.jason.liu21@gmail.com>
bd8abb1 to
b5e002b
Compare
|
I think that you will also need to pass through the
|
Signed-off-by: Jason Liu <a.jason.liu21@gmail.com>
3baec71 to
2a9bd22
Compare
benjdlambert
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! 🎉
|
Thank you for contributing to Backstage! The changes in this pull request will be part of the |
|
Where are the docs/examples for this change? |
|
@gavinclarkeuk there's no user changes required here, this is a purely internal implementation detail to call the catalog on behalf of the user that created the scaffolder job. If you're using the new backend system there's nothing to do from an integrators point of view either as that should all be taken care of by the framework. What are you looking for specifically? |
|
@benjdlambert my mistake - we were seeing issues with this action, and I though it was related to the new token input parameter, but I think it may be unrelated |
Hey, I just made a Pull Request!
Changes the github:environment:create Scaffolder action to request and use a backend auth token when resolving the reviewer entityRefs from the Backstage catalog.
This is because previously it would throw a 401 error when backend auth was not disabled.
The logic for requesting the token is copied from the existing catalog:fetch action, which needs to do a similar thing.
Also slightly clarifies that Backstage entityRefs are expected in the reviewers list for this action.
Fixes #27515.
✔️ Checklist
Signed-off-byline in the message. (more info)