From 4c3274eb8cf087a99175974d5bad6cde78773510 Mon Sep 17 00:00:00 2001 From: Enderson Menezes Date: Wed, 3 Apr 2024 20:57:49 -0300 Subject: [PATCH] Add secret management for service account credentials in report.yaml workflow --- .github/workflows/report.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/report.yaml b/.github/workflows/report.yaml index 601bbf2..f417e1c 100644 --- a/.github/workflows/report.yaml +++ b/.github/workflows/report.yaml @@ -30,6 +30,10 @@ jobs: - name: Poetry install run: poetry install --no-dev --no-root + - name: "🤫 Secret" + run: | + echo ${SERVICE_ACCOUNT_CREDENTIALS} > service_account.json + - name: Run report run: | poetry run python main.py ${{secrets.PROPERTY_ID}} $(bash calculate_dates.sh ${{ github.event.inputs.month }})