Skip to content

Commit 7dd887e

Browse files
authored
docs: Fix version generation in PROVENANCE file (#272)
1 parent ffeded9 commit 7dd887e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

PROVENANCE.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,32 @@ As part of [SLSA requirements for level 3 compliance](https://slsa.dev/spec/v1.0
77
To verify SLSA provenance attestations, we recommend using [slsa-verifier](https://github.com/slsa-framework/slsa-verifier). Example usage for verifying SDK packages is included below:
88

99
<!-- x-release-please-start-version -->
10+
```
11+
# Set the version of the SDK to verify
12+
SDK_VERSION=9.2.0
13+
```
14+
<!-- x-release-please-end -->
15+
16+
1017
```
1118
# Download package from PyPi
12-
$ pip download --only-binary=:all: launchdarkly-server-sdk
19+
$ pip download --only-binary=:all: launchdarkly-server-sdk==${SDK_VERSION}
1320
1421
# Download provenance from Github release into same directory
1522
$ curl --location -O \
16-
https://github.com/launchdarkly/python-server-sdk/releases/download/9.2.0/multiple.intoto.jsonl
23+
https://github.com/launchdarkly/python-server-sdk/releases/download/${SDK_VERSION}/multiple.intoto.jsonl
1724
1825
# Run slsa-verifier to verify provenance against package artifacts
1926
$ slsa-verifier verify-artifact \
2027
--provenance-path multiple.intoto.jsonl \
2128
--source-uri github.com/launchdarkly/python-server-sdk \
22-
launchdarkly_server_sdk-9.2.0-py3-none-any.whl
29+
launchdarkly_server_sdk-${SDK_VERSION}-py3-none-any.whl
2330
Verified signature against tlog entry index 71399397 at URL: https://rekor.sigstore.dev/api/v1/log/entries/24296fb24b8ad77a95c53f2cb33fe2e8c8fbc04591ebf26e4d2796fb2975c3ba377f1dc14507f421
2431
Verified build using builder "https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@refs/tags/v1.7.0" at commit 5e818265c9f85ae9a111290bd6a4fad1a08786e9
25-
Verifying artifact launchdarkly_server_sdk-9.2.0-py3-none-any.whl: PASSED
32+
Verifying artifact launchdarkly_server_sdk-${SDK_VERSION}-py3-none-any.whl: PASSED
2633
2734
PASSED: Verified SLSA provenance
2835
```
29-
<!-- x-release-please-end -->
3036

3137
Alternatively, to verify the provenance manually, the SLSA framework specifies [recommendations for verifying build artifacts](https://slsa.dev/spec/v1.0/verifying-artifacts) in their documentation.
3238

0 commit comments

Comments
 (0)