From 1c429bb0a356a072594bb9b664ea272711f11651 Mon Sep 17 00:00:00 2001 From: siddhantCodes Date: Tue, 12 Nov 2024 19:23:15 +0530 Subject: [PATCH] Use FIFTHTRY_SITE_WRITE_TOKEN for fastn.com deploys --- .github/workflows/deploy-fastn-com.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-fastn-com.yml b/.github/workflows/deploy-fastn-com.yml index 223ebb980..e1b0aa3b4 100644 --- a/.github/workflows/deploy-fastn-com.yml +++ b/.github/workflows/deploy-fastn-com.yml @@ -5,11 +5,10 @@ on: push: branches: [ main ] -permissions: - id-token: write # This is required for requesting the JWT - contents: read # This is required for actions/checkout - jobs: + env: + # https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions + FIFTHTRY_SITE_WRITE_TOKEN: ${{ secrets.FIFTHTRY_SITE_WRITE_TOKEN }} build: runs-on: ubuntu-latest steps: @@ -20,4 +19,5 @@ jobs: rm .gitignore # so that `fastn upload` uploads .packages/ too cd fastn.com echo "Using $(fastn --version) to upload fastn.com to FifthTry" + # Requires FIFTHTRY_SITE_WRITE_TOKEN to be set fastn upload fastn >> $GITHUB_STEP_SUMMARY