From c0a3cd30dcc8e38b2a1e7aea62956897c2cd739a Mon Sep 17 00:00:00 2001 From: Ru Chern Chong Date: Mon, 30 Oct 2023 05:07:39 +0800 Subject: [PATCH] Use vars instead of secrets --- .github/workflows/sst.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/sst.yml b/.github/workflows/sst.yml index 95331bd..f57f8a9 100644 --- a/.github/workflows/sst.yml +++ b/.github/workflows/sst.yml @@ -12,8 +12,6 @@ permissions: jobs: DeployApp: runs-on: ubuntu-latest - env: - ROLE_TO_ASSUME: ${{ secrets.ROLE_TO_ASSUME }} steps: - name: Git clone the repository uses: actions/checkout@v3 @@ -21,7 +19,7 @@ jobs: - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: - role-to-assume: $ROLE_TO_ASSUME + role-to-assume: ${{ vars.ROLE_TO_ASSUME }} aws-region: ap-southeast-1 - name: Deploy app run: |