Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github client panic v1.3.0 #94

Closed
audrey-mux opened this issue Dec 22, 2023 · 7 comments · Fixed by #95
Closed

Github client panic v1.3.0 #94

audrey-mux opened this issue Dec 22, 2023 · 7 comments · Fixed by #95

Comments

@audrey-mux
Copy link

Hey guys

Just pulled v1.3.0 (new app capability, yay!) - hitting this during pod startup.

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x29a4a69]

goroutine 1 [running]:
github.com/zapier/kubechecks/pkg/vcs/github_client.CreateGithubClient()
	/src/pkg/vcs/github_client/client.go:76 +0x409
github.com/zapier/kubechecks/cmd.createVCSClient({0xc000058074?, 0x334550f?})
	/src/cmd/vcs.go:16 +0x45
github.com/zapier/kubechecks/cmd.glob..func1(0x58a4ae0?, {0x333c6b4?, 0x0?, 0x0?})
	/src/cmd/controller_cmd.go:30 +0x4a
github.com/spf13/cobra.(*Command).execute(0x58a4ae0, {0x593e390, 0x0, 0x0})
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0x58a50a0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:968
github.com/zapier/kubechecks/cmd.Execute()
	/src/cmd/root.go:37 +0xc5
main.main()
	/src/main.go:8 +0x17

sorry for being so annoying :-)

@djeebus
Copy link
Collaborator

djeebus commented Dec 23, 2023

Sorry for being so crashy! This is an intereseting one. Your token didn't fail to get a user, but also didn't get a user. Interesting! We can make this safer, but I assume that it'll fail to checkout code, as git won't have a name or email address. What kind of token are you using?

@audrey-mux
Copy link
Author

audrey-mux commented Dec 23, 2023

Its using a classic PAT, with no admin privs. Previous versions complained about not getting email during the github client initialization, but would continue to function. Seems like it may be required now.

@audrey-mux
Copy link
Author

Ah here we go - the account now needs its email address displayed publicly.

@SG60
Copy link

SG60 commented Jan 6, 2024

Ah here we go - the account now needs its email address displayed publicly.

Is there any way to use v1.3.0 without a public email address?

@djeebus
Copy link
Collaborator

djeebus commented Jan 8, 2024

Yeah, that was unintentional. Working on the fix now

@djeebus
Copy link
Collaborator

djeebus commented Jan 9, 2024

@audrey-mux would you mind testing the image in #95 and see if that resolves your panic?

@audrey-mux
Copy link
Author

audrey-mux commented Jan 9, 2024

Looks like it does resolve the issue :-)

10:36PM DBG building command args=["config","--global","user.email","[email protected]"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants