From 40318ebd31375d99b3855780f6ce8793cb086bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Correa=20Rodr=C3=ADguez?= Date: Tue, 27 Aug 2024 12:10:11 +0200 Subject: [PATCH] Added AWS credentials setup and automation checkout steps --- .github/workflows/Test_installation_assistant.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/Test_installation_assistant.yml b/.github/workflows/Test_installation_assistant.yml index a88d9e6..6a0c6fa 100644 --- a/.github/workflows/Test_installation_assistant.yml +++ b/.github/workflows/Test_installation_assistant.yml @@ -106,3 +106,17 @@ jobs: - name: Install Ansible run: sudo apt-get update && sudo apt-add-repository ppa:ansible/ansible && sudo apt install -y ansible + + - name: Set up AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.AWS_IAM_ROLE }} + role-session-name: "${{ env.SESSION_NAME }}" + aws-region: "${{ env.REGION }}" + + - name: Checkout wazuh/wazuh-automation repository + uses: actions/checkout@v4 + with: + repository: wazuh/wazuh-automation + ref: ${{ inputs.AUTOMATION_REFERENCE }} + token: ${{ secrets.GH_CLONE_TOKEN }}