Open yzainee-zz opened 5 years ago
Go to settings and reconnect Github ? https://openshift.io/shbose/_settings ( should look something like this )
@sbose78 This is not an issue with the user's OSIO token, this is the issue with the OSIO token (offline) that we get during build pipeline flow
am not sure if using offline OSIO token is right approach (as the starting point) to clone repos.
@SriKrishnaPaparaju We dont use offline token to clone repos. The offline token is used when we call the auth APIs to get the github token. We then use the github token to clone the repos
osio hardcoded token is not used for github API calls. Only user's OSiO tokens could be used for such calls.
Issue Overview:
The stack report is not getting generated via the build pipeline. The problem is that when we try to get the github token via the auth API "https://auth.openshift.io/api/token?for=https://github.com" , by passing the OSIO token, we are getitng back "unauthorized_error" and hence we do not get the git hub token. Due to this, the 1st step of stack analysis, where we clone the github repo fails.
Note: This issue is observed only for "Node" ecosystem.
Logs snippet: