Skip to content

Commit

Permalink
fixing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Aug 9, 2024
1 parent f3a133c commit 8e4cc0e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/reusable-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/update-act.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8e4cc0e

Please sign in to comment.