Skip to content

During Extraction: Error: ADM-ZIP: Invalid or unsupported zip format. No END header found #403

Closed

Description

@dojones1

I have a pipeline for publishing test results
https://github.com/dojones1/parserService/actions/runs/24791075162

Pipeline used to work reliably until April 13 4:23., and has now failed every time since

Error Log:

Run dawidd6/action-download-artifact@v20
==> Repository: dojones1/parserService
==> Artifact name: 
==> Local path: artifacts
==> Workflow name: 11776637
==> Workflow conclusion: success
==> Allow forks: false
==> Artifact: 6583803669
==> Downloading: dojones1~parserService~R7WBC9.dockerbuild.zip (54.39 kB)
==> Extracting: dojones1~parserService~R7WBC9.dockerbuild.zip
  Error: ADM-ZIP: Invalid or unsupported zip format. No END header found

workflow file:

---
name: publish-test-results
on:  # yamllint disable-line rule:truthy
  workflow_run:
    workflows: ["parser-service-pipeline"]
    types:
      - completed
permissions: {}

jobs:
  test-results:
    name: Test Results
    runs-on: ubuntu-latest
    if: github.event.workflow_run.conclusion != 'skipped'

    permissions:
      checks: write

      # needed unless run with comment_mode: off
      pull-requests: write

      # only needed for private repository
      contents: read

      # only needed for private repository
      issues: read

      # required by download step to access artifacts API
      actions: read

    steps:
      - name: Download and Extract Artifacts
        uses: dawidd6/action-download-artifact@v20
        with:
          run_id: ${{ github.event.workflow_run.id }}
          path: artifacts

      - name: Publish Test Results
        uses: EnricoMi/publish-unit-test-result-action@v2.23.0
        with:
          commit: ${{ github.event.workflow_run.head_sha }}
          event_file: artifacts/Event File/event.json
          event_name: ${{ github.event.workflow_run.event }}
          files: "artifacts/**/*.xml"

I found this thread, which highlights how this error occurs and was resolved in other tools. May be related?:
cthackers/adm-zip#268 (comment)

Activity

  1. dawidd6 commented on Apr 28, 2026

    @dawidd6
    Owner

    The link you have provided gives 404.

    Anyway I have no idea why it does not work out of a sudden. Every CI test case just passed on master and I don't see similar issues reported by others, nor any thumbs up on this one.

    I can only tell you to try use_unzip: true input as a workaround.

  2. dojones1 commented on Apr 28, 2026

    @dojones1
    Author

    I've tried your suggested workaround:

      
    ==> Repository: dojones1/parserService
    ==> Artifact name: 
    ==> Local path: artifacts
    ==> Workflow name: 11776637
    ==> Workflow conclusion: success
    ==> Allow forks: false
    ==> Artifact: 6690644123
    ==> Downloading: dojones1~parserService~VD9W86.dockerbuild.zip (52.43 kB)
    ==> Extracting: dojones1~parserService~VD9W86.dockerbuild.zip
      /usr/bin/unzip artifacts/dojones1~parserService~VD9W86.dockerbuild/dojones1~parserService~VD9W86.dockerbuild.zip -d artifacts/dojones1~parserService~VD9W86.dockerbuild
      Archive:  artifacts/dojones1~parserService~VD9W86.dockerbuild/dojones1~parserService~VD9W86.dockerbuild.zip
        End-of-central-directory signature not found.  Either this file is not
        a zipfile, or it constitutes one disk of a multi-part archive.  In the
        latter case the central directory and zipfile comment will be found on
        the last disk(s) of this archive.
      unzip:  cannot find zipfile directory in one of artifacts/dojones1~parserService~VD9W86.dockerbuild/dojones1~parserService~VD9W86.dockerbuild.zip or
              artifacts/dojones1~parserService~VD9W86.dockerbuild/dojones1~parserService~VD9W86.dockerbuild.zip.zip, and cannot find artifacts/dojones1~parserService~VD9W86.dockerbuild/dojones1~parserService~VD9W86.dockerbuild.zip.ZIP, period.
      Error: The process '/usr/bin/unzip' failed with exit code 9```
    
    
    Sequencing issue? File may not have been written from the other workflow?
    
  3. dawidd6 commented on Apr 28, 2026

    @dawidd6
    Owner

    Did you try downloading this artifact manually to your workstation and extracting it?

    Seems like the archive is corrupted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions