Skip to content

Commit

Permalink
Added AWS credentials setup and automation checkout steps
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcr01 committed Aug 27, 2024
1 parent 1d84840 commit f2f10bd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/Test_installation_assistant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ env:
SESSION_NAME: "Installation-Assistant-Test"
REGION: "us-east-1"

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
initialize-environment:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -106,3 +110,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 }}

0 comments on commit f2f10bd

Please sign in to comment.