From aa814ca6ca4aa691ccae44248faacc95d8559a2f Mon Sep 17 00:00:00 2001 From: Aditya Sirish Date: Tue, 30 Apr 2024 10:33:53 -0400 Subject: [PATCH] Make key path a variable Signed-off-by: Aditya Sirish --- .github/workflows/gittuf-rsl-main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gittuf-rsl-main.yml b/.github/workflows/gittuf-rsl-main.yml index c6f944c..29fd8e4 100644 --- a/.github/workflows/gittuf-rsl-main.yml +++ b/.github/workflows/gittuf-rsl-main.yml @@ -33,9 +33,11 @@ jobs: git config --global user.name "${{ github.workflow }}" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - echo "$KEY" > /tmp/key + gittuf_key_path="/tmp/gittuf-key" + + echo "$KEY" > $gittuf_key_path git fetch origin refs/gittuf/reference-state-log:refs/gittuf/reference-state-log refs/gittuf/attestations:refs/gittuf/attestations - GITTUF_DEV=1 gittuf dev attest-github --signing-key /tmp/key --repository ${{ github.repository }} --commit ${{ github.sha }} --base-branch "main" + GITTUF_DEV=1 gittuf dev attest-github --signing-key $gittuf_key_path --repository ${{ github.repository }} --commit ${{ github.sha }} --base-branch "main" gittuf rsl record main git push origin refs/gittuf/reference-state-log:refs/gittuf/reference-state-log refs/gittuf/attestations:refs/gittuf/attestations