Repository navigation
Conversation
docker/scout-action failed at random with "Unexpected HTTP response: 403" (4 times so far, twice in a row on main). It downloads its 187 MB binary from the GitHub API without authentication, and that API allows 60 requests an hour per IP address, which shared GitHub-hosted runners exhaust. Install the Scout CLI instead from the github.com release download, which has no such limit, pinned by version and SHA-256 and retried on errors. It uses the Docker Hub login the workflows already perform. The scans and their pass/fail rule are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI on
mainis red (run #47, both attempts): the Docker Scout step fails withUnexpected HTTP response: 403before scanning anything. It has happened 4 times so far.docker/scout-actiondownloads its 187 MB binary from the GitHub API (api.github.com/.../releases/assets/<id>) without authentication. That API allows 60 unauthenticated requests an hour per IP address, and shared GitHub-hosted runners use it up.Fix
.github/scripts/install-docker-scout.shinstalls the Scout CLI from the github.com release download, which has no such limit. It is pinned to v1.30.0 and checked against the release's SHA-256 checksums, with retries on errors.docker scout cvesdirectly, using the Docker Hub login they already perform.Testing
CI run #48 on this branch is green on all four jobs:
The release workflow's Scout step has the same change but runs only on a tag.