Skip to content

@actions/artifact checks the expected hash against the response but not the file on the disk #2180

@richRubie

Description

@richRubie

Thank you 🙇‍♀ for wanting to create an issue in this repository. Before you do, please ensure you are filing the issue in the right place. Issues should only be opened on if the issue relates to code in this repository.

If your issue is relevant to this repository, please include the information below:

Describe the bug
We had a transient issue which meant that a file was only partially downloaded.
This code succedded, where I think it whould have failed.
It looks like you check the expected digest against the response but you don't check it against the file on the disk.
You print the digest fo the file on the disk.

To Reproduce
sorry i don't know how you could reproduce this realiably.

Expected behavior
I would expect the expectedDigest to be checked agaisnt the extractResponse.sha256Digest AND the "SHA256 digest of downloaded artifact"

Screenshots
This screen shot shows the list of artifacts and includes the expected digest
Image

This screen shot shows the "successes" which don't include a matching hashset
Image

On other runs of this the action the hashsets match

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions