Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

CircleCI integration doesn't work #53

@tor-legit

Description

@tor-legit

I tried to use the manual for the circleCI integration, but I got an error:
I fetched the ring_session_cookie from request to graphql_unstable, but still received that my organization doesn't exist.
I ran the following command:
export ORG=my_org; export SESSION=my_session; export RCOOKIE={extracted data from my authenticated session}
./gitoops circleci -debug -organization $ORG -neo4j-password test -neo4j-uri="neo4j://localhost:7687/" -cookie $RCOOKIE -session $SESSION
WARN[0000] 1 errors on organization: Either the org 'github/my_org' does not exist, or you do not have permission to view it
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x12745ff]

goroutine 1 [running]:
github.com/ovotech/gitoops/pkg/circleci.(*OrganizationIngestor).GetOrganizationId(...)
(...)/gitoops/pkg/circleci/organization.go:40
github.com/ovotech/gitoops/pkg/circleci.(*CircleCI).Sync(0xc000028840)
(...)/gitoops/pkg/circleci/circleci.go:55 +0x17f
main.cmdCircleCI(0x12c03e0?)
(...)/gitoops/cmd/cmd_circleci.go:27 +0x119
main.main()
(...)/gitoops/cmd/main.go:65 +0x2f2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions