Closed vbehar closed 4 years ago
after reading the code, I found that it's normal to have an empty ghOwner
because we're not using GHA
I tried to enable batch mode in the common options, and now have the following:
WARNING: creating user for server "https://github.com": running in batch mode and no default Git username found
although I have a jx-auth-config
configmap with the following data
gitAuth.yaml: |
currentserver: "https://github.com"
defaultusername: "dailymotion-jenkins-bot"
pipelineserver: "https://github.com"
pipelineusername: "dailymotion-jenkins-bot"
servers:
- currentuser: "dailymotion-jenkins-bot"
kind: "github"
name: "github"
url: "https://github.com"
users:
- apitoken: "vault:jx-green/pipelineUser:token"
bearertoken: ""
username: "dailymotion-jenkins-bot"
and everything else is working (the controller-build is able to retrieve pull-request informations from github...)
ok after copying the permissions from the controllerbuild role, I managed to make it work. I'll find the minimum required permissions and add them to #23
found it: it requires serviceaccounts and vault
with version 0.0.17
after fixing the missing permissions https://github.com/jenkins-x-labs/slack/pull/23 I got the following panic.
It is trying to create a git user, because it failed to retrieve the existing one. for some reason it failed to retrieve the ghOwner at https://github.com/jenkins-x/jx/blob/master/pkg/gits/provider.go#L512 I thought it was a missing permission to read the jx-auth-config configmap, but even after adding this permission it is still failing.
do you have an idea?
thanks