You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): scan published Android image with Trivy - #85
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
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.
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
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: 3 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Title check
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 checks: 3 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
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.
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.
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
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.
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 issueChanges
Verification
Actionlint and
git diff --checkpassed. 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