From afff4f3278a23db349aa152d3f5693ffa45978bd Mon Sep 17 00:00:00 2001 From: Douglas Camata <159076+douglascamata@users.noreply.github.com> Date: Wed, 30 Aug 2023 14:04:00 +0200 Subject: [PATCH] Try to use secret usage and interpolation Signed-off-by: Douglas Camata <159076+douglascamata@users.noreply.github.com> --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ad14e0e..6482cd8 100644 --- a/action.yml +++ b/action.yml @@ -29,12 +29,14 @@ runs: brew update --preinstall shell: bash - name: Install Colima + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - LIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name) + LIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${TOKEN}' https://api.github.com/repos/lima-vm/lima/releases/latest | jq -r .tag_name) curl -fsSL "https://github.com/lima-vm/lima/releases/download/${LIMA_VERSION}/lima-${LIMA_VERSION:1}-$(uname -s)-$(uname -m).tar.gz" | tar Cxzvm /usr/local # download binary - COLIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' https://api.github.com/repos/abiosoft/colima/releases/latest | jq -r .tag_name) + COLIMA_VERSION=$(curl -fsSL --header 'authorization: Bearer ${TOKEN}' https://api.github.com/repos/abiosoft/colima/releases/latest | jq -r .tag_name) curl -LO https://github.com/abiosoft/colima/releases/download/${COLIMA_VERSION}/colima-$(uname)-$(uname -m) # install in $PATH