Skip to content

panic: runtime error on macOS BigSur 11.2 (codeql-action-sync tool) #56

Closed
@hsbt

Description

@hsbt

HI, I tried to sync github/codeql-action to our on-prem GHES instance. But I got the following error on my macOS.

Command:

./codeql-action-sync sync --destination-token xxx --destination-url https://our-ghes-server --force

Result:

(snip)
DEBU[0123] Pushing Git references to https://our-ghes-server/github/codeql-action.git...
Resolving deltas: 100% (139/139), done.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x143f807]

goroutine 1 [running]:
github.com/go-git/go-git/v5/plumbing/protocol/packp.(*ReportStatus).Error(0x0, 0xc0000a0000, 0x18d2120)
        /home/runner/go/pkg/mod/github.com/go-git/go-git/[email protected]/plumbing/protocol/packp/report_status.go:31 +0x37
github.com/go-git/go-git/v5.(*Remote).PushContext(0xc000c4baa8, 0x18d4f60, 0xc0000a0000, 0xc000c4bae0, 0x0, 0x0)
        /home/runner/go/pkg/mod/github.com/go-git/go-git/[email protected]/remote.go:199 +0x8d1
github.com/github/codeql-action-sync/internal/push.(*pushService).pushGit(0xc000c4bc20, 0xc001144300, 0x0, 0x0, 0x0)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/internal/push/push.go:216 +0x97d
github.com/github/codeql-action-sync/internal/push.Push(0x18d4f60, 0xc0000a0000, 0xc00027ac00, 0x1b, 0x7ffeefbff2a1, 0x1e, 0x7ffeefbff266, 0x28, 0x1755b6c, 0x14, ...)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/internal/push/push.go:427 +0x53c
github.com/github/codeql-action-sync/cmd.glob..func4(0x1d4cde0, 0xc0000bc870, 0x0, 0x5, 0x0, 0x0)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/cmd/sync.go:21 +0x1e9
github.com/spf13/cobra.(*Command).execute(0x1d4cde0, 0xc0000bc820, 0x5, 0x5, 0x1d4cde0, 0xc0000bc820)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:842 +0x453
github.com/spf13/cobra.(*Command).ExecuteC(0x1d4c600, 0x1d4cde0, 0x1, 0x1)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:880
github.com/github/codeql-action-sync/cmd.Execute(0x18d4f60, 0xc0000a0000, 0xc000713f78, 0x100580f)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/cmd/root.go:67 +0x237
main.main()
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/main.go:15 +0x4e

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions