@@ -21,7 +21,7 @@ To verify artifact attestations generated during the build process, use the `gh
2121The ` gh attestation verify ` command requires either ` --owner ` or ` --repo ` flags to be used with it.
2222
2323> [ !NOTE]
24- > Make sure to replace X.Y.Z with the actual release tag you want to verify.
24+ > Make sure to replace x.y.z with the actual release tag you want to verify.
2525
2626Download the release artifacts first:
2727
@@ -35,7 +35,7 @@ To verify the artifact attestations for this project, you can run the following
3535``` bash
3636gh attestation verify --repo integrations/terraform-provider-github --source-ref " v${version} " \
3737 --signer-workflow integrations/terraform-provider-github/.github/workflows/release.yaml \
38- " terraform-provider-github_X.Y.Z_darwin_amd64 .zip"
38+ " terraform-provider-github_ ${version} _darwin_amd64 .zip"
3939```
4040
4141### Using optional flags
@@ -47,15 +47,15 @@ Use the `--signer-repo` flag to specify the repository:
4747``` bash
4848gh attestation verify --owner integrations --signer-repo \
4949 integrations/terraform-provider-github \
50- terraform-provider-github_X.Y.Z_darwin_amd64 .zip
50+ terraform-provider-github_ ${version} _darwin_amd64 .zip
5151```
5252
5353If you would like to require an artifact attestation to be signed with a specific workflow, use the ` --signer-workflow ` flag to indicate the workflow file that should be used.
5454
5555``` bash
5656gh attestation verify --owner integrations --signer-workflow \
5757 integrations/terraform-provider-github/.github/workflows/release.yaml \
58- terraform-provider-github_X.Y.Z_darwin_amd64 .zip
58+ terraform-provider-github_ ${version} _darwin_amd64 .zip
5959```
6060
6161## Verifying release artifacts with Cosign
@@ -80,9 +80,9 @@ First, install Cosign if you haven't already. See the [installation instructions
8080Download the checksums file and its signature bundle:
8181
8282``` bash
83- gh release download vX.Y.Z --repo integrations/terraform-provider-github \
84- -p " terraform-provider-github_X.Y.Z_SHA256SUMS " \
85- -p " terraform-provider-github_X.Y.Z_SHA256SUMS .sbom.json.bundle"
83+ gh release download v ${version} --repo integrations/terraform-provider-github \
84+ -p " terraform-provider-github_ ${version} _SHA256SUMS " \
85+ -p " terraform-provider-github_ ${version} _SHA256SUMS .sbom.json.bundle"
8686```
8787
8888Verify the checksums file signature:
@@ -102,14 +102,14 @@ After verifying the checksums file, verify your downloaded artifacts match the c
102102Download the artifact you want to verify:
103103
104104``` bash
105- gh release download vX.Y.Z --repo integrations/terraform-provider-github \
106- -p " terraform-provider-github_X.Y.Z_darwin_amd64 .zip"
105+ gh release download v ${version} --repo integrations/terraform-provider-github \
106+ -p " terraform-provider-github_ ${version} _darwin_amd64 .zip"
107107```
108108
109109Verify the checksum:
110110
111111``` bash
112- shasum -a 256 -c terraform-provider-github_X.Y.Z_SHA256SUMS --ignore-missing
112+ shasum -a 256 -c terraform-provider-github_ ${version} _SHA256SUMS --ignore-missing
113113```
114114
115115This will verify that your downloaded artifact matches the signed checksum, confirming its integrity and authenticity.
0 commit comments