Open Stringls opened 1 year ago
hello 👋🏽 does your GitHub app configured for repository event? :)
I'm also getting the same message on my PR - https://github.com/ch007m/pac-demo/pull/1/checks. The github app has been created according to the following doc page: https://pipelinesascode.com/docs/install/github_apps/#setup-manually
Log of the pipeline controller reports
{"severity":"ERROR","timestamp":"2023-03-06T16:43:32.833672077Z","logger":"pipelinesascode","caller":"events/emit.go:45","message":"Cannot create status: could not validate payload, check
your webhook secret?: payload signature check failed: cannot set status on github no token or url set","commit":"c08c907","provider":"github","event-id":"0789f7b0-bc3e-11ed-86be-d5145d8cee
db","event-sha":"8d6cc510ecd0ce998e4482f8a38f2e0b0ce73d77","event-type":"pull_request","stacktrace":"github.com/openshift-pipelines/pipelines-as-code/pkg/events.(*EventEmitter).EmitMessage
\n\t/src/pkg/events/emit.go:45\ngithub.com/openshift-pipelines/pipelines-as-code/pkg/pipelineascode.(*PacRun).Run\n\t/src/pkg/pipelineascode/pipelineascode.go:57\ngithub.com/openshift-pipe
lines/pipelines-as-code/pkg/adapter.(*sinker).processEvent\n\t/src/pkg/adapter/sinker.go:52\ngithub.com/openshift-pipelines/pipelines-as-code/pkg/adapter.listener.handleEvent.func1.2\n\t/s
rc/pkg/adapter/adapter.go:189"}
yeah the event is missing there, as it is an optional feature https://pipelinesascode.com/docs/install/settings/ here you can see
auto-configure-new-github-repo
If you have a GitHub App already setup then verify if the `repository` event is subscribed into your Github App setting.
also to clarify this feature is for new repositories created in your github user/org will be auto-configured by creating a namespace and repository CR.
cc @chmouel
@sm43 Is there any plans to support the existent repos for this automation feature as well? E.g. I have the existent repo and I want to simply add the pipelinerun definition into .tekton/
folder to enable CI on it
@anton-livewyer there is no plans for this at the moment. having a catch all namespace for all pipeline may be something we can have with a regexp kind of matching for the repo URL but that's not planned at the moment...
Hi, folks!
I set the value for
auto-configure-new-github-repo
toTrue
But when I try to add a new repository to my CI workflow it fails because of no namespace created
Logs of the controller
What I am doing wrong?