chore: make CPE_CACHE_REGISTRY configurable

Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
This commit is contained in:
Will Murphy 2026-03-30 14:32:02 -04:00
parent 90198da04d
commit 1a8caa2665

View File

@ -2,18 +2,18 @@ version: "3"
vars:
CPE_CACHE_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator/.cpe-cache"
CPE_CACHE_REGISTRY: "ghcr.io/anchore/syft/cpe-cache:latest"
CPE_CACHE_REGISTRY: '{{env "CPE_CACHE_REGISTRY" | default "ghcr.io/anchore/syft/cpe-cache:latest"}}'
CPE_INDEX_OUTPUT: "syft/pkg/cataloger/internal/cpegenerate/dictionary/data/cpe-index.json"
CPE_GENERATOR_DIR: "syft/pkg/cataloger/internal/cpegenerate/dictionary/index-generator"
tasks:
cache:pull:
desc: Pull CPE cache from ORAS registry (ghcr.io/anchore/syft/cpe-cache:latest)
desc: Pull CPE cache from ORAS registry
# deps: [tools]
cmds:
- cmd: |
set -eu
echo "Pulling CPE cache from ORAS registry..."
echo "Pulling CPE cache from {{ .CPE_CACHE_REGISTRY }}..."
mkdir -p {{ .CPE_CACHE_DIR }}
# pull compressed files from ORAS