@@ -16,8 +16,10 @@ details such as:
1616- Source code details
1717- Materials (files, scripts) consumed during the build
1818
19- Provenance attestations follow the
20- [ SLSA provenance schema, version 0.2] ( https://slsa.dev/provenance/v0.2#schema ) .
19+ By default, provenance attestations follow the
20+ [ SLSA provenance schema, version 0.2] ( https://slsa.dev/spec/v0.2/provenance#schema ) .
21+ You can optionally enable [ SLSA Provenance v1] ( https://slsa.dev/spec/v1.1/provenance#schema )
22+ using [ the ` version ` parameter] ( #version ) .
2123
2224For more information about how BuildKit populates these provenance properties, refer to
2325[ SLSA definitions] ( slsa-definitions.md ) .
@@ -29,11 +31,12 @@ to the `docker buildx build` command:
2931
3032``` console
3133$ docker buildx build --tag < namespace> /< image> :< version> \
32- --attest type=provenance,mode=[min,max] .
34+ --attest type=provenance,mode=[min,max],version=[v0.2,v1] .
3335```
3436
3537Alternatively, you can use the shorthand ` --provenance=true ` option instead of ` --attest type=provenance ` .
36- To specify the ` mode ` parameter using the shorthand option, use: ` --provenance=mode=max ` .
38+ To specify the ` mode ` or ` version ` parameters using the shorthand option, use:
39+ ` --provenance=mode=max,version=v1 ` .
3740
3841For an example on how to add provenance attestations with GitHub Actions, see
3942[ Add attestations with GitHub Actions] ( /manuals/build/ci/github-actions/attestations.md ) .
@@ -150,6 +153,23 @@ detailed information for analysis.
150153> [ secret mounts] ( /reference/cli/docker/buildx/build.md#secret ) instead.
151154> Secret mounts don't leak outside of the build and are never included in provenance attestations.
152155
156+ ## Version
157+
158+ The ` version ` parameter lets you specify which SLSA provenance schema version
159+ to use. Supported values are ` version=v0.2 ` (default) and ` version=v1 ` .
160+
161+ To use SLSA Provenance v1:
162+
163+ ``` console
164+ $ docker buildx build --tag < namespace> /< image> :< version> \
165+ --attest type=provenance,mode=max,version=v1 .
166+ ```
167+
168+ For more information about SLSA Provenance v1, see the
169+ [ SLSA specification] ( https://slsa.dev/spec/v1.1/provenance ) . To see the
170+ difference between SLSA v0.2 and v1 provenance attestations, refer to
171+ [ SLSA definitions] ( ./slsa-definitions.md )
172+
153173## Inspecting Provenance
154174
155175To explore created Provenance exported through the ` image ` exporter, you can
0 commit comments