Thanks to visit codestin.com
Credit goes to github.com

Skip to content

upload-artifact@v7 direct uploads do not round-trip with download-artifact@v8 #6173

Description

@chuckatkins

Bug report info

act version: 0.2.89

Command used with act

act push --artifact-server-path ./artifacts

Describe issue

  • actions/upload-artifact@v7 supports uploading one file directly with archive: false.
  • This is separate from the basic v7/v8 request compatibility tracked in Artifact server rejects upload-artifact@v7 / download-artifact@v8 (mime_type + sig padding) #6114. Accepting the new mime_type field is not enough because act currently discards its value.
  • actions/download-artifact@v8 uses the blob response Content-Type to decide whether to extract it and Content-Disposition to recover the filename.
  • Without that metadata, the direct download uses the fallback filename artifact instead of the uploaded filename.
  • Direct artifacts should retain their MIME type and download with their original filename.

Workflow content

on:
  push:
jobs:
  artifacts:
    runs-on: ubuntu-latest
    steps:
      - run: echo Direct artifact > direct.txt

      - uses: actions/upload-artifact@v7
        with:
          path: direct.txt
          archive: false

      - uses: actions/download-artifact@v8
        with:
          name: direct.txt
          path: out

      - run: cmp direct.txt out/direct.txt

Relevant log output

Downloading raw file (non-zip) to: .../out/artifact
cmp: out/direct.txt: No such file or directory

Additional information

  • With archive: false, upload-artifact uses the source basename as the artifact name.
  • The artifact server needs to preserve the request MIME type and return appropriate Content-Type and Content-Disposition headers for the download.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions