Skip to content

Unstable download steps - add retry #667

Description

@max06

What would you like to be added:
I'd love to see some retry logic around the download steps, especially when using github.com as source.

Why is this needed:
Github.com seems to become less and less stable, due to rising AI traffic (as they proclaimed on X some weeks ago). This causes repeated incidents and smaller, less noticeable issues with the platform. Repeating problems fetching the release list or assets from a repository is just one of the symptoms.

Additional context:

------------------------------ Running SBOM Action -----------------------------
/usr/bin/sh /home/runner/work/_temp/dfa2e940-91ae-4769-82f1-906123bbfeb6 -d -b /home/runner/work/_temp/dfa2e940-91ae-4769-82f1-906123bbfeb6_syft v1.42.3
[info] checking github for release tag='v1.42.3' 
[debug] http_download(url=https://github.com/anchore/syft/releases/v1.42.3) 
Error:  received HTTP status=504 for url='https://github.com/anchore/syft/releases/v1.42.3' 
Error:  unable to find tag='' 
Error:  do not specify a version or select a valid version from https://github.com/anchore/syft/releases 
Error: The process '/usr/bin/sh' failed with exit code 1

keeps bugging us repeatedly since some weeks...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions