Skip to content

Commit 2081e59

Browse files
authored
fix: fix attestations.json file in test fixture (#246)
1 parent 416834e commit 2081e59

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

e2e/cli/e2e.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ mock_attestation() {
114114
swap_source_url "${TEMPLATES_DIR}/source.template.json" "file://$(realpath "${RELEASE_ARCHIVE}")"
115115
swap_attestation_url "${TEMPLATES_DIR}/attestations.template.json" "source.json" "file://$(realpath "${SOURCE_ATTESTATION}")"
116116
swap_attestation_url "${TEMPLATES_DIR}/attestations.template.json" "MODULE.bazel" "file://$(realpath "${MODULE_ATTESTATION}")"
117-
swap_attestation_url "${TEMPLATES_DIR}/attestations.template.json" "{REPO}-{TAG}.tar.gz.intoto.jsonl" "file://$(realpath "${ARCHIVE_ATTESTATION}")"
117+
swap_attestation_url "${TEMPLATES_DIR}/attestations.template.json" "{REPO}-{TAG}.tar.gz" "file://$(realpath "${ARCHIVE_ATTESTATION}")"
118118

119119
run "${NODE_BIN}" "${CLI_BIN}" create-entry --local-registry "${REGISTRY_PATH}" --templates-dir "${TEMPLATES_DIR}" --module-version 1.0.0 --github-repository owner/attestations --tag v1.0.0
120120

e2e/fixtures/attestations/.bcr/attestations.template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"types": ["https://slsa.dev/provenance/v1"],
2+
"mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0",
33
"attestations": {
44
"source.json": {
55
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/source.json.intoto.jsonl",
@@ -9,7 +9,7 @@
99
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/MODULE.bazel.intoto.jsonl",
1010
"integrity": ""
1111
},
12-
"{REPO}-{TAG}.tar.gz.intoto.jsonl": {
12+
"{REPO}-{TAG}.tar.gz": {
1313
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz.intoto.jsonl",
1414
"integrity": ""
1515
}

e2e/github-webhook/__snapshots__/e2e.spec.js.snap

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,7 @@ module(
270270
modules/attestations/1.0.0/attestations.json
271271
----------------------------------------------------
272272
{
273-
"types": [
274-
"https://slsa.dev/provenance/v1"
275-
],
273+
"mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0",
276274
"attestations": {
277275
"source.json": {
278276
"url": "https://github.com/testorg/attestations/releases/download/v1.0.0/source.json.intoto.jsonl",
@@ -282,7 +280,7 @@ modules/attestations/1.0.0/attestations.json
282280
"url": "https://github.com/testorg/attestations/releases/download/v1.0.0/MODULE.bazel.intoto.jsonl",
283281
"integrity": "sha256-IXNI7+fdDXNXwbhf/tYlRHWg6g0SzZLi3Va2bnDfEM0="
284282
},
285-
"attestations-v1.0.0.tar.gz.intoto.jsonl": {
283+
"attestations-v1.0.0.tar.gz": {
286284
"url": "https://github.com/testorg/attestations/releases/download/v1.0.0/attestations-v1.0.0.tar.gz.intoto.jsonl",
287285
"integrity": "sha256-F8+mmnlCygeJk5x/E89lVtxmXvxyfzUe/vb+3cmrTGs="
288286
}
@@ -309,7 +307,7 @@ bcr_test_module:
309307
modules/attestations/1.0.0/source.json
310308
----------------------------------------------------
311309
{
312-
"integrity": "sha256-8Mp0OnyZi6oZkiRyG+7AJ6aKho6Z3FfjVdeO/j+2ZPg=",
310+
"integrity": "sha256-5ZEMl5xVJYkHciAiRrnDsJfacYasGal+3G4gIwvClbI=",
313311
"strip_prefix": "attestations-1.0.0",
314312
"url": "https://github.com/testorg/attestations/releases/download/v1.0.0/attestations-v1.0.0.tar.gz"
315313
}

0 commit comments

Comments
 (0)