Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Invalid memory address or nil pointer dereference #10638

Copy link
Copy link

Description

@beyondcompute
Issue body actions

From a workflow run log:

Run gh workflow run file-name.yaml \
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x0 pc=0x1013ed6c8]

goroutine 1 [running]:
github.com/cli/cli/v2/pkg/cmd/workflow/shared.FindWorkflow(0x1400071f8c0, {0x102394160, 0x140003374a0}, {0x16f8e2900, 0x1e}, {0x1400071f8b0, 0x1, 0x1})
	github.com/cli/cli/v2/pkg/cmd/workflow/shared/shared.go:139 +0x148
github.com/cli/cli/v2/pkg/cmd/workflow/shared.ResolveWorkflow({0x109e961a8, 0x140000ce2d0}, 0x140004629a0, 0x1400071f780?, {0x102394160?, 0x140003374a0?}, 0x0?, {0x16f8e2900, 0x1e}, {0x1400071f8b0, ...})
	github.com/cli/cli/v2/pkg/cmd/workflow/shared/shared.go:207 +0x22c
github.com/cli/cli/v2/pkg/cmd/workflow/run.runRun(0x1400085e5a0)
	github.com/cli/cli/v2/pkg/cmd/workflow/run/run.go:273 +0x1d0
github.com/cli/cli/v2/pkg/cmd/workflow/run.NewCmdRun.func2(0x14000868008?, {0x140008b12c0?, 0x4?, 0x101435439?})
	github.com/cli/cli/v2/pkg/cmd/workflow/run/run.go:128 +0x340
github.com/spf13/cobra.(*Command).execute(0x14000868008, {0x140008b1270, 0x5, 0x5})
	github.com/spf13/cobra@v1.8.1/command.go:985 +0x834
github.com/spf13/cobra.(*Command).ExecuteC(0x1400066c008)
	github.com/spf13/cobra@v1.8.1/command.go:1117 +0x344
github.com/spf13/cobra.(*Command).ExecuteContextC(...)
	github.com/spf13/cobra@v1.8.1/command.go:1050
github.com/cli/cli/v2/internal/ghcmd.Main()
	github.com/cli/cli/v2/internal/ghcmd/cmd.go:119 +0x4b0
main.main()
	github.com/cli/cli/v2/cmd/gh/main.go:10 +0x1c

Workflow code:

      - name: Trigger “yadda yadda” workflow
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        run: |
          gh workflow run file-name.yaml \
            --repo ${{ github.repository }} \
            -f tag_name=${{ github.ref_name }}

Golang is like Perl but with the ability to specify the bit-depth of integers.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't workingneeds-triageneeds to be reviewedneeds to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.