diff --git a/.github/workflows/reusable-update.yml b/.github/workflows/reusable-update.yml index 4023c4df..d5712f40 100644 --- a/.github/workflows/reusable-update.yml +++ b/.github/workflows/reusable-update.yml @@ -6,6 +6,13 @@ on: state: required: true type: string + secrets: + TF_VAR_ELASTIC_HOST: + required: true + TF_VAR_ELASTIC_PASSWORD: + required: true + TF_VAR_ELASTIC_USERNAME: + required: true jobs: update: @@ -20,7 +27,7 @@ jobs: - name: Upload env: - ELASTIC_HOST: ${{ vars.TF_VAR_ELASTIC_HOST }} + ELASTIC_HOST: ${{ secrets.TF_VAR_ELASTIC_HOST }} ELASTIC_PASSWORD: ${{ secrets.TF_VAR_ELASTIC_PASSWORD }} ELASTIC_USERNAME: ${{ secrets.TF_VAR_ELASTIC_USERNAME }} ELASTIC_PORT: 443 diff --git a/.github/workflows/update-act.yml b/.github/workflows/update-act.yml index b1399b2f..0a4ba65f 100644 --- a/.github/workflows/update-act.yml +++ b/.github/workflows/update-act.yml @@ -8,5 +8,9 @@ on: jobs: call-reusable-workflow: uses: ./.github/workflows/reusable-update.yml + secrets: + TF_VAR_ELASTIC_HOST: ${{ secrets.TF_VAR_ELASTIC_HOST }} + TF_VAR_ELASTIC_PASSWORD: ${{ secrets.TF_VAR_ELASTIC_PASSWORD }} + TF_VAR_ELASTIC_USERNAME: ${{ secrets.TF_VAR_ELASTIC_USERNAME }} with: state: ACT