Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snyk/actions/setup seems flakey, errors with No URLs found in -. #43

Open
rtyley opened this issue Jan 12, 2023 · 0 comments
Open

snyk/actions/setup seems flakey, errors with No URLs found in -. #43

rtyley opened this issue Jan 12, 2023 · 0 comments

Comments

@rtyley
Copy link
Member

rtyley commented Jan 12, 2023

The Synk Github Action we use in many of our repos seems flakey? https://github.com/guardian/play-secret-rotation/actions/workflows/snyk.yml has failed spuriously twice in the past 24 hours:

image

The error occurs in the Run snyk/actions/setup step, which is configured in this repo here:

security:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- uses: snyk/actions/[email protected]

The error on an unsuccessful run is:

Installing the latest version of Snyk on Linux
No URLs found in -.
sha256sum: snyk-linux.sha256: No such file or directory
Error: Process completed with exit code 1.

A successful run would differ at the No URLs found in -. line, and say:

Installing the latest version of Snyk on Linux
--2023-01-12 10:40:47--  https://github.com/snyk/cli/releases/download/v1.10[8](https://github.com/guardian/play-secret-rotation/actions/runs/3901451722/jobs/6663316114#step:3:10)5.0/snyk-linux
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found

The workaround is to re-run the job - it will normally pass on the 2nd try.

Cause

The first line that's obviously failing is the first wget in setup_snyk.sh. We see the error message No URLs found in -., and that's an error message generated by wget:

  /* And then from the input file, if any.  */
  if (opt.input_filename)
    {
      int count;
      int status;
      status = retrieve_from_file (opt.input_filename, opt.force_html, &count);
      inform_exit_status (status);
      if (!count)
        logprintf (LOG_NOTQUIET, _("No URLs found in %s.\n"),
                   opt.input_filename);
    }

The wget is trying to do this:

wget --progress=bar:force:noscroll "$BASE_URL/$VERSION/snyk-${PREFIX}"
@rtyley rtyley changed the title Synk Github Action we use in many of our repos seems flakey? snyk/actions/setup seems flakey, errors with No URLs found in -. Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant