chore: move test fixtures to oss-cache repo (#4733)

* chore: move test fixtures to oss-cache repo

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>

* pr feedback: sort vars in taskfile

Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>

---------

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Co-authored-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
Will Murphy
2026-04-02 20:50:43 +00:00
committed by GitHub
co-authored by Alex Goodman
parent 2089d086fe
commit 99158be0ba
+3 -2
View File
@@ -10,7 +10,8 @@ vars:
# v1: when fixtures were located at test-fixtures dirs # v1: when fixtures were located at test-fixtures dirs
# v2: migration to testdata dirs # v2: migration to testdata dirs
CACHE_IMAGE: ghcr.io/{{ .OWNER }}/{{ .PROJECT }}/test-fixture-cache:v2 CACHE_REPO: oss-cache
CACHE_IMAGE: ghcr.io/{{ .OWNER }}/{{ .CACHE_REPO }}/syft-test-fixture-cache:v2
# static file dirs # static file dirs
TOOL_DIR: .tool TOOL_DIR: .tool
@@ -424,7 +425,7 @@ tasks:
done done
oras_command+=" {{ .CACHE_PATHS_FILE }}" oras_command+=" {{ .CACHE_PATHS_FILE }}"
oras_command+=" --annotation org.opencontainers.image.source=https://github.com/{{ .OWNER }}/{{ .PROJECT }}" oras_command+=" --annotation org.opencontainers.image.source=https://github.com/{{ .OWNER }}/{{ .CACHE_REPO }}"
oras_command+=" --annotation fingerprint=$(cat {{ .CACHE_PATHS_FILE }} | {{ .YQ }} -r '.digest')" oras_command+=" --annotation fingerprint=$(cat {{ .CACHE_PATHS_FILE }} | {{ .YQ }} -r '.digest')"
echo "Executing: $oras_command" echo "Executing: $oras_command"