Skip to content

Commit 7f3725e

Browse files
committed
CI/release: Do not pass the bunny AccessKey on the command line
Signed-off-by: Janne Grunau <[email protected]>
1 parent 58a9599 commit 7f3725e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
env:
2828
PKG_URL: "https://storage.bunnycdn.com/asahilinux/${{ inputs.upload-type }}"
2929
PKG_VER: "installer-${{ needs.build.outputs.installer_ver }}"
30+
ACCESS_KEY: ${{ secrets.BUNNY_TOKEN }}
3031
run: |
3132
if [ ! -e "releases/${PKG_VER}" ]; then
3233
echo "Package not found!"
@@ -36,7 +37,8 @@ jobs:
3637
upload() {
3738
curl -# --fail --request PUT \
3839
--url "${2}" \
39-
-H "AccessKey: ${{ secrets.BUNNY_TOKEN }}" \
40+
--variable %ACCESS_KEY \
41+
--expand-header 'AccessKey: {{ACCESS_KEY}}' \
4042
-H "Content-Type: ${3}" \
4143
-H "Accept: application/json" \
4244
--data-binary @${1}

0 commit comments

Comments
 (0)