From 891012d93e5179e66cff4f07b42bffa0d5b3050b Mon Sep 17 00:00:00 2001 From: Mike Carey <32496966+mike-carey@users.noreply.github.com> Date: Wed, 25 Oct 2023 18:50:23 -0500 Subject: [PATCH] Removes `inputs.github-token` in favor of `secrets.github-token` (#45) --- .github/workflows/deploy-lambda-function.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/deploy-lambda-function.yml b/.github/workflows/deploy-lambda-function.yml index f89edf5f..199035ac 100644 --- a/.github/workflows/deploy-lambda-function.yml +++ b/.github/workflows/deploy-lambda-function.yml @@ -23,10 +23,6 @@ on: description: 'If pulling from a github release, the release tag that should be pulled from' type: string default: '' - github-token: - description: 'The github token that has read access to the release assets' - type: string - default: ${{ github.token }} # AWS options role-name: # shorthand @@ -166,7 +162,7 @@ jobs: shell: bash run: gh -R "${{ github.repository }}" release download -p "${{ inputs.pattern }}" "${{ inputs.release-tag }}" env: - GITHUB_TOKEN: ${{ inputs.github-token }} + GH_TOKEN: ${{ secrets.github-token || github.token }} # Only if we are downloading assets from gh release if: inputs.release-tag != ''