From e033eb10abb7117e492de62dd22f0ed724ddc9bf Mon Sep 17 00:00:00 2001 From: Brian DeHamer Date: Thu, 11 Jan 2024 15:43:59 -0800 Subject: [PATCH] progress Signed-off-by: Brian DeHamer --- .github/workflows/update-tuf-seeds.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update-tuf-seeds.yml b/.github/workflows/update-tuf-seeds.yml index 46d9d0219..3d759f8dd 100644 --- a/.github/workflows/update-tuf-seeds.yml +++ b/.github/workflows/update-tuf-seeds.yml @@ -21,8 +21,12 @@ jobs: - name: ls run: tree ${{ runner.temp }} - name: make new + env: + TUF_CACHE: ${{ runner.temp }}/tuf run: | jq -n -c \ - --arg root "$(cat ${{ runner.temp }}/tuf/root.json | base64)" \ - --arg trusted_root "$(cat ${{ runner.temp }}/tuf/targets/trusted_root.json | base64)" \ - '{"foo":{"root.json":$root,"targets":{"trusted_root.json":$trusted_root}}}' + --arg mirror ${TUF_MIRROR} \ + --arg root "$(cat ${TUF_CACHE}/root.json | base64)" \ + --arg trusted_root "$(cat ${TUF_CACHE}/targets/trusted_root.json | base64)" \ + --arg npm_keys "$(cat ${TUF_CACHE}/targets/registry.npmjs.org%2Fkeys.json | base64)" \ + '{$mirror:{"root.json":$root,"targets":{"trusted_root.json":$trusted_root,"registry.npmjs.org%2Fkeys.json":$npm_keys}}}'