Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions content/manuals/scout/integrations/ci/gha.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ This creates workflow steps to:

> [!NOTE]
>
> This CI workflow runs a local analysis and evaluation of your image. To
> evaluate the image locally, you must ensure that the image is loaded the
> local image store of your runner.
> The Scout compare step only runs on pull requests
> (`if: github.event_name == 'pull_request'`). Those builds set `load: true`
> and leave `sbom` / `provenance` off so the image can land in the runner's
> local store.
>
> This comparison doesn't work if you push the image to a registry, or if you
> build an image that can't be loaded to the runner's local image store. For
> example, multi-platform images or images with SBOM or provenance attestation
> can't be loaded to the local image store.
> On push events the same job turns SBOM and provenance on and `push`es to
> the registry. Don't enable those attestations (or a multi-platform build)
> on the PR path — those images can't be loaded locally, and compare would
> have nothing to inspect.

With this setup out of the way, you can add the following steps to run the
image comparison:
Expand Down