Skip to content

gh run view --log NNN fail with "failed to get run log: zip: not a valid zip file" #8009

@erezgeva

Description

@erezgeva

Describe the bug

$ gh --version
gh version 2.34.0 (2023-09-06)
https://github.com/cli/cli/releases/tag/v2.34.0

$ cat /etc/debian_version
12.1

Works

$ gh run view  --job=16863895763`
...
To see the full job log, try: gh run view --log --job=16863895763`
...

But with "--log", I get an error

$ gh run view --log --job=16863895763
failed to get run log: zip: not a valid zip file

Steps to reproduce the behaviour

Just run gh run view --log with a job or workflow action.

Expected vs actual behaviour

Get the log and not error.

Edit: @williammartin edited this to fix formatting to use code blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-runrelating to the gh run commandhelp wantedContributions welcomep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions