From e30e704e14aba057f3c04e5d546163d135300ca5 Mon Sep 17 00:00:00 2001 From: Chris Marsh <84872334+ChrisMarsh82@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:52:43 +0100 Subject: [PATCH] Update reusable-deploy-web-preview.yml --- .github/workflows/reusable-deploy-web-preview.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/reusable-deploy-web-preview.yml b/.github/workflows/reusable-deploy-web-preview.yml index 81cb8d2f08..bd6dabb6c4 100644 --- a/.github/workflows/reusable-deploy-web-preview.yml +++ b/.github/workflows/reusable-deploy-web-preview.yml @@ -36,10 +36,9 @@ on: description: Firebase site for hosting type: string default: ${{vars.FIREBASE_HOSTING_TARGET}} - firebase-service-account: - description: Service account passed from outside organisation - type: string - default: ${{secrets.FIREBASE_SERVICE_ACCOUNT}} + secrets: # Declare secrets you expect to receive + FIREBASE_SERVICE_ACCOUNT: + required: true jobs: build_action: @@ -105,7 +104,7 @@ jobs: uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: "${{ secrets.GITHUB_TOKEN }}" - firebaseServiceAccount: "${{ inputs.firebase-service-account }}" + firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" projectId: "${{ env.FIREBASE_PROJECT_ID }}" channelId: "${{ env.FIREBASE_HOSTING_CHANNEL }}" target: "${{inputs.firebase-host}}"