From eabcd10cb613f59110630749cb009783b5606bcc Mon Sep 17 00:00:00 2001 From: nicholasmhughes Date: Mon, 18 Mar 2024 19:15:29 -0400 Subject: [PATCH] this is terrible --- .github/workflows/pr.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e738992..b7f2361 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -10,9 +10,24 @@ on: pull_request: jobs: + encode_secrets: + name: Encode Secrets + runs-on: ubuntu-latest + outputs: + TEST_ENV_VARS: ${{ steps.encode.outputs.TEST_ENV_VARS }} + steps: + - name: Encode AZURE_* secrets + id: encode-azure + run: echo -e "EITR_ID='${{ secrets.EITR_ID }}'\nEITR_SECRET='${{ secrets.EITR_SECRET }}'" | base64 + - name: Set output secret + id: encode + run: echo "TEST_ENV_VARS=$(echo -n ${{ steps.encode-azure.outputs.stdout }})" >> $GITHUB_ENV + call_central_workflow: name: CI uses: eitrtechnologies/test-github-actions-central/.github/workflows/ci.yml@main - secrets: - EITR_ID: ${{ secrets.EITR_ID }} - EITR_SECRET: ${{ secrets.EITR_SECRET }} + needs: encode_secrets + env: + TEST_ENV_VARS: ${{ needs.encode-secrets.outputs.TEST_ENV_VARS }} + with: + TEST_ENV_VARS: ${{ env.TEST_ENV_VARS }}