Skip to content

fix(ci): scan published Android image with Trivy - #85

Merged
beevelop merged 2 commits into
latestfrom
fix/scout-release-download
Dec 3, 2026
Merged

beevelop merged 2 commits into
latestfrom
fix/scout-release-download

Conversation

@beevelop

@beevelop beevelop commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

Why

Android’s merge workflow built, smoke-tested, and published beevelop/android:latest. The post-publish scan then failed because Docker Scout’s action binary download hit GitHub’s anonymous API rate limit. Android workflow · Scout issue

Changes

  • Use the same commit-pinned Trivy action that passed in the Java publish workflow. Java workflow
  • Scan the exact Docker Hub digest after login and publication. Run vulnerability scanning and upload the SARIF result to GitHub code scanning.
  • Remove the interim Scout download script and its dedicated PR check.

Verification

Actionlint and git diff --check passed. GitHub Actions built the Android amd64 image and passed the installed-tool smoke tests. The authenticated Android scan and SARIF upload run on publication. PR workflow

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Docker workflow now uses a script to download and verify Docker Scout CLI version 1.30.0. Pull-request runs check the CLI version, and published-image scans use the CLI to scan the image digest and write SARIF output.

Changes: Docker Scout CLI workflow

Layer / File(s) Summary
Pinned CLI download and execution
.github/scripts/docker-scout.sh
The script downloads the Linux amd64 archive, verifies its pinned SHA-256 checksum, extracts and runs the CLI with the supplied arguments, and removes its temporary directory on exit.
Workflow validation and image scanning
.github/workflows/docker.yml
Pull-request runs check the CLI version. Published-image scanning invokes the script with the image digest, scans for CVEs on linux/amd64 under the beevelop organization, and writes sarif.output.json.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Sequence Diagram(s)

sequenceDiagram
  participant DockerWorkflow
  participant DockerScoutScript
  participant DockerScoutCLI
  DockerWorkflow->>DockerScoutScript: Run version check or image scan
  DockerScoutScript->>DockerScoutCLI: Run command with supplied arguments
  DockerScoutCLI->>DockerWorkflow: Return version or write SARIF scan output
Loading

Possibly related PRs

Merge Risk: Minimal · up to ef1c5

The change replaces a failing Docker Scout action download with a pinned and checksum-verified CLI download, and keeps the same scan and SARIF upload. No merge-blocking risk was found.

Pre-merge checks: Passed 3 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Title check Warning The title says the fix scans the published Android image with Trivy. The raw summary and PR objectives describe a change that replaces the Docker Scout action with a script-based Docker Scout CLI down… Retitle the pull request to match the changes. For example: "fix(ci): download Docker Scout CLI from its release URL". The title must name Docker Scout, not Trivy, unless the Trivy change is also in this pull request.
Passed Passed checks: 3 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title says the fix scans the published Android image with Trivy. The raw summary and PR objectives describe a change that replaces the Docker Scout action with a script-based Docker Scout CLI download and scan. No Trivy usage appears in the described changes. The title names a scanner and a purpose that the changeset does not show, so it is misleading and off-topic.

Resolution

Retitle the pull request to match the changes. For example: "fix(ci): download Docker Scout CLI from its release URL". The title must name Docker Scout, not Trivy, unless the Trivy change is also in this pull request.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d170cbe9-68ed-4646-9def-a8e874c9de90
Commits

Reviewing files that changed from the base of the PR and between 7408c0f and ef1c5be.

Files selected for processing: 2

  • .github/scripts/docker-scout.sh
  • .github/workflows/docker.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@beevelop beevelop changed the title fix(ci): download Docker Scout from its release URL fix(ci): scan published Android image with Trivy Dec 3, 2026
@beevelop
beevelop merged commit f809861 into latest Dec 3, 2026
2 checks passed
@beevelop
beevelop deleted the fix/scout-release-download branch December 3, 2026 18:05
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