Upload_to_v4 ruby gem uploads failing because of Github actions?

Using Codecov with simplecov, both with Ruby gems, in github actions.

A lot of our builds fail

https://codecov.io/upload/v4?token=secret&flags&package=ruby-0.5.2&service=github-actions&branch=retry-code-cov&pr=1066&slug=SNIP%SNIP&build=SNIP&commit=SNIP

  req = Net::HTTP::Post.new(
    "#{uri.path}?#{query}",
    {
      'X-Reduced-Redundancy' => 'false',
      'X-Content-Encoding' => 'application/x-gzip',
      'Content-Type' => 'text/plain'
    }
  )

Error message:
{‘detail’: ErrorDetail(string=‘Unable to locate build via Github Actions API. Please upload with the Codecov repository upload token to resolve issue.’, code=‘not_found’)}

The token ought to be inserted? I don’t understand why it isn’t. Also, uploads fail only intermittently.

Hi @helloworld1234 can you provide a commit SHA and a link to a failure?