Merge pull request #19145 from felipecruz91/patch-2

Update SSC attestations policy description
This commit is contained in:
David Karlsson 2024-01-19 10:56:39 +01:00 committed by GitHub
commit fdc73c2002
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 10 deletions

View File

@ -165,25 +165,17 @@ The **Supply chain attestations** policy requires that your artifacts have
[provenance](../../build/attestations/slsa-provenance.md) attestations.
This policy is unfulfilled if an artifact lacks either an SBOM attestation or a
provenance attestation, or if the provenance attestation lacks information
about the Git repository and base images being used. To ensure compliance,
provenance attestation with max mode. To ensure compliance,
update your build command to attach these attestations at build-time:
```console
$ docker buildx build --provenance=true --sbom=true -t <IMAGE> --push .
```
BuildKit automatically detects the Git repository and base images when this
information is available in the build context. For more information about
For more information about
building with attestations, see
[Attestations](../../build/attestations/_index.md).
> **Note**
>
> Docker Scout is currently unable to discern the difference between using
> `scratch` as a base image and having no base image provenance. As a result,
> images based on `scratch` always fail the Supply chain attestations policy.
### Quality gates passed
The Quality gates passed policy builds on the [SonarQube