Skip to content

409 Conflict on Existing File #30

@smashedr

Description

@smashedr

Not sure what caused this to crop up now, but uploading an existing file throws a 409 and fails the job.

https://github.com/cssnr/virustotal-action/actions/runs/18417322955

Most likely I was ignoring an error that is now not being ignored, which is a good thing.

TLDR: We need to catch the 409 status, and now that we have the SHA256, get the existing report:

https://www.virustotal.com/api/v3/files/{SHA256}

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