Skip to content

Commit fce98ca

Browse files
authored
Pass secret directly, not as env var (#1750)
1 parent 6c3eaf1 commit fce98ca

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ concurrency:
1414

1515
env:
1616
COB_DATAPIPELINE_BRANCH: ${{ github.ref_name }}
17-
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
1817

1918
jobs:
2019
prod-deploy:
@@ -51,4 +50,4 @@ jobs:
5150
working-directory: ansible-playbook-airflow
5251
run: |
5352
pipenv run ansible-galaxy install -r requirements.yml
54-
pipenv run ansible-playbook -i inventory/prod playbook.yml --tags "jumphost,role::airflow::dags" --vault-id @env:ANSIBLE_VAULT_PASSWORD -e 'ansible_ssh_port=9229' -e cob_datapipeline_branch=$COB_DATAPIPELINE_BRANCH
53+
pipenv run ansible-playbook -i inventory/prod playbook.yml --tags "jumphost,role::airflow::dags" --vault-id ${{ secrets.ANSIBLE_VAULT_PASSWORD }} -e 'ansible_ssh_port=9229' -e cob_datapipeline_branch=$COB_DATAPIPELINE_BRANCH

.github/workflows/qa-deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ concurrency:
1515
jobs:
1616
qa-deploy:
1717
runs-on: ubuntu-latest
18-
env:
19-
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
20-
2118
timeout-minutes: 30
2219
strategy:
2320
matrix:
@@ -50,4 +47,4 @@ jobs:
5047
working-directory: ansible-playbook-airflow
5148
run: |
5249
pipenv run ansible-galaxy install -r requirements.yml
53-
pipenv run ansible-playbook -i inventory/qa playbook.yml --tags "jumphost,role::airflow::dags" --vault-id @env:ANSIBLE_VAULT_PASSWORD -e 'ansible_ssh_port=9229'
50+
pipenv run ansible-playbook -i inventory/qa playbook.yml --tags "jumphost,role::airflow::dags" --vault-id ${{ secrets.ANSIBLE_VAULT_PASSWORD }} -e 'ansible_ssh_port=9229'

0 commit comments

Comments
 (0)