Skip to content

Run Docker Scout through its CLI instead of scout-action - #15

Merged
zamibd merged 1 commit into
mainfrom
scout-cli
Nov 29, 2026
Merged

zamibd merged 1 commit into
mainfrom
scout-cli

Conversation

@zamibd

@zamibd zamibd commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Problem

CI on main is red (run #47, both attempts): the Docker Scout step fails with Unexpected HTTP response: 403 before scanning anything. It has happened 4 times so far.

docker/scout-action downloads 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.sh installs 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.
  • CI and the release workflow run docker scout cves directly, using the Docker Hub login they already perform.
  • The rule is unchanged: fail on any fixable finding, on every platform, plus a report-only scan of the published image.
  • The new script is added to the ShellCheck lint step.

Testing

CI run #48 on this branch is green on all four jobs:

Job Scout CLI install Build scan Published image
amd64 2 s 0C 0H 0M 0L 0C 0H 0M 0L
arm64 1 s 0C 0H 0M 0L 0C 0H 0M 0L
arm/v7 3 s 0C 0H 0M 0L 0C 0H 0M 0L

The release workflow's Scout step has the same change but runs only on a tag.

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.
@zamibd
zamibd merged commit 73350b9 into main Nov 29, 2026
6 checks passed
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

Successfully merging this pull request may close these issues.

1 participant