pipelines-as-code
pipelines-as-code copied to clipboard
add a message in namespace event stream when token has expired
user would not know about it otherwise, we cannot update the providder UI since well we don't have a valid token (edited)
It would be helpful to surface this where possible. As @chmouel suggested an event in the user namespace could be a good way to inform the user.
What are the steps for replacing the token. Could CLI help with that?
partial address this with documentation here: #651
I don't have a screenshot handy since i don't have a token expired but we have added token expiration check in the code which get logged back in the user namespace..
code is here https://github.com/openshift-pipelines/pipelines-as-code/blob/57d9bf28f3b941cdab247e090296a010b41b2c4e/pkg/provider/github/github.go#L168-L172
closing this