-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix and test the github admin route #1886
Fix and test the github admin route #1886
Conversation
Generated by 🚫 dangerJS |
const serverSecrets = require('../../../lib/server-secrets') | ||
const { setRoutes } = require('./admin') | ||
|
||
function createAuthHeader({ username, password }) { |
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.
It's a bit annoying this must be done manually. We may want to consider a different request library like got or axios.
Sentry issue: SHIELDS-1C |
Sentry issue: SHIELDS-1D |
Sentry issue: SHIELDS-1B |
@paulmelnikow I'll look at this in the morning if no one has done so in the meantime. 😉 |
What was the regression that was introduced? Was it the usage of |
Yes it was. That function accepts buffers, not strings, and does not accept
Indeed! It would be good to give access to more of the maintainers. I wonder if we were to write some guidelines, @espadrine would be open to adding more people. |
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 clarifying. I'm happy with the changes!
Thanks for reviewing! |
Fix regressions in the github admin and token acceptor endpoints, introduced in #1813.