github/codeql-action-sync-tool

FATA[0001] json: cannot unmarshal number 999999999999 into Go

son7211 opened this issue ยท 0 comments

๐Ÿ‘‹ Hi, I got below error on updating CodeQL Action. I'm using GHES3.6.1, I couldn't find no clue so far. Please help! ๐Ÿ™‡โ€โ™‚๏ธ

./codeql-action-sync sync  --destination-token "token" --destination-url "url"  --force
INFO[0000] Starting CodeQL Action sync tool version 1.0.9...
DEBU[0000] Updating Git contents...                    
DEBU[0000] Pulling CodeQL bundles...                    
DEBU[0000] Finding release references...                
DEBU[0000] Found refs/heads/main.                      
DEBU[0000] Resolved to 038242a7f09afe724e84b5b04dca8b9f238f5a6b.
DEBU[0000] Found refs/tags/v1.                          
DEBU[0000] Resolved to 83007bbc17d874e3f1654bfaf9367629f7fdcac7.
DEBU[0000] Found refs/tags/v2.                          
DEBU[0000] Resolved to 904260d7d935dff982205cbdb42025ce30b7a34f.
DEBU[0000] Pulling CodeQL bundle codeql-bundle-20220908 (1/1)...
DEBU[0001] Downloading asset codeql-bundle-linux64.tar.gz...
DEBU[0001] Asset is already in cache.                  
DEBU[0001] Downloading asset codeql-bundle-osx64.tar.gz...
DEBU[0001] Asset is already in cache.                  
DEBU[0001] Downloading asset codeql-bundle-win64.tar.gz...
DEBU[0001] Asset is already in cache.                  
DEBU[0001] Downloading asset codeql-bundle.tar.gz...    
DEBU[0001] Asset is already in cache.                  
INFO[0001] Finished pulling the CodeQL Action repository and bundles!
WARN[0001] https://test.com/api/v3 redirected to https://test.com/api/v3. The URL https://test.com/api/v3/ will be used for all API requests.
DEBU[0001] Ensuring repository exists...                
FATA[0001] json: cannot unmarshal number 999999999999 into Go struct field Plan.plan.private_repos of type int
Error checking if destination organization exists. (27e2b743-f524-4ae9-b56f-3995e09de7e3)
[github.com/github/codeql-action-sync/internal/githubapiutil.EnrichResponseError](http://github.com/github/codeql-action-sync/internal/githubapiutil.EnrichResponseError)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/internal/githubapiutil/githubapiutil.go:40
[github.com/github/codeql-action-sync/internal/push.(*pushService).createRepository](http://github.com/github/codeql-action-sync/internal/push.(*pushService).createRepository)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/internal/push/push.go:87
[github.com/github/codeql-action-sync/internal/push.Push](http://github.com/github/codeql-action-sync/internal/push.Push)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/internal/push/push.go:473
[github.com/github/codeql-action-sync/cmd.glob..func4](http://github.com/github/codeql-action-sync/cmd.glob..func4)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/cmd/sync.go:21
[github.com/spf13/cobra.(*Command).execute](http://github.com/spf13/cobra.(*Command).execute)
        /home/runner/go/pkg/mod/[github.com/spf13/cobra@v1.0.0/command.go:842](http://github.com/spf13/cobra@v1.0.0/command.go:842)
[github.com/spf13/cobra.(*Command).ExecuteC](http://github.com/spf13/cobra.(*Command).ExecuteC)
        /home/runner/go/pkg/mod/[github.com/spf13/cobra@v1.0.0/command.go:950](http://github.com/spf13/cobra@v1.0.0/command.go:950)
[github.com/spf13/cobra.(*Command).Execute](http://github.com/spf13/cobra.(*Command).Execute)
        /home/runner/go/pkg/mod/[github.com/spf13/cobra@v1.0.0/command.go:887](http://github.com/spf13/cobra@v1.0.0/command.go:887)
[github.com/spf13/cobra.(*Command).ExecuteContext](http://github.com/spf13/cobra.(*Command).ExecuteContext)
        /home/runner/go/pkg/mod/[github.com/spf13/cobra@v1.0.0/command.go:880](http://github.com/spf13/cobra@v1.0.0/command.go:880)
[github.com/github/codeql-action-sync/cmd.Execute](http://github.com/github/codeql-action-sync/cmd.Execute)
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/cmd/root.go:76
main.main
        /home/runner/work/codeql-action-sync-tool/codeql-action-sync-tool/main.go:15
runtime.main
        /opt/hostedtoolcache/go/1.18.0/x64/src/runtime/proc.go:250
runtime.goexit
        /opt/hostedtoolcache/go/1.18.0/x64/src/runtime/asm_386.s:1326