-
Notifications
You must be signed in to change notification settings - Fork 228
Upgrade derek dependency to 0.10.2 #664
Upgrade derek dependency to 0.10.2 #664
Conversation
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.
I'm getting the following error in github-status:
Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key
It goes away if I update the call to MakeAccessTokenForInstallation
(see below), and I no longer get the email warning about my new GitHub app calling the deprecated endpoint 🎉
github-status/vendor/github.com/alexellis/derek/auth/jwt_auth.go
Outdated
Show resolved
Hide resolved
d284fcf
to
01fe28c
Compare
Good spots, updated to 10.2. and made changes & fixes based on suggestions, fancy giving this branch a build and try @wilsonianb |
01fe28c
to
ae6ca5c
Compare
This version of derek includes an update to remove a soon to be depricated API endpoint on github. Reference: https://developer.github.com/changes/2020-04-15-replacing-create-installation-access-token-endpoint/ Signed-off-by: Alistair Hey <[email protected]>
ae6ca5c
to
cf722c7
Compare
@@ -119,14 +125,31 @@ func getLogs(status *sdk.CommitStatus, event *sdk.Event) (string, error) { | |||
} | |||
|
|||
func reportToGithub(commitStatus *sdk.CommitStatus, event *sdk.Event) error { | |||
secretKey, err := sdk.ReadSecret(defaultPayloadSecretName) | |||
if err != nil { | |||
log.Printf("reusing provided auth token") |
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.
seems like this can be removed
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.
Tested again and github events including github-status work. 👍
@wilsonianb thanks for your input here. PRs are welcome - you seem to have a good handle on how things fit together. Try to keep them short & sweet. Ideally defensible - i.e. changes for a defined purpose. |
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.
Approved
Signed-off-by: Alistair Hey [email protected]
Description
This version of derek includes an update to remove a soon to be depricated API endpoint on github.
Reference: https://developer.github.com/changes/2020-04-15-replacing-create-installation-access-token-endpoint/
This release will need the following 3 containers bumped:
note: buildshiprun wasnt using Derek for auth but had it in the Gopkg
How Has This Been Tested?
A new OFC installation was created and the above 3x containers swapped for my own built versions.
A deployment was then completed using a commit from a linked git repository.
How are existing users impacted? What migration steps/scripts do we need?
Github users will need to update these 3x containers in their installations before the endpoint on github is deprecated.
Checklist:
I have:
git commit -s