From 270605a6197760a8e30896f44e65c7f1a7e31c36 Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Tue, 1 Oct 2024 22:56:12 +0200 Subject: [PATCH] Refactor workflow file paths and update branch restrictions --- .github/workflows/ansible-weekly-reconciliation.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ansible-weekly-reconciliation.yml b/.github/workflows/ansible-weekly-reconciliation.yml index 9e9bb9a..675bc69 100644 --- a/.github/workflows/ansible-weekly-reconciliation.yml +++ b/.github/workflows/ansible-weekly-reconciliation.yml @@ -18,17 +18,17 @@ jobs: uses: ./.github/actions/setup-env - name: Setup Ansible environment + id: setup_ansible_env uses: ./.github/actions/setup-ansible-env with: vault-master-password: ${{ secrets.VAULT_MASTER_PASSWORD }} ansible-user: ${{ secrets.ANSIBLE_USER }} - trusted-hosts: ${{ secrets.TRUSTED_HOSTS }} - name: Apply Hardening Playbook env: VAULT_MASTER_PASSWORD: ${{ secrets.VAULT_MASTER_PASSWORD }} ANSIBLE_USER: ${{ secrets.ANSIBLE_USER }} - SSH_AUTH_SOCK: /tmp/ssh_agent.sock + SSH_AUTH_SOCK: ${{ steps.setup_ansible_env.outputs.ssh-auth-sock }} run: | cd ansible sectool exec ansible-playbook -u $ANSIBLE_USER playbook_login.yml