Skip to content

Commit

Permalink
Modify secret assign
Browse files Browse the repository at this point in the history
  • Loading branch information
vcerenu committed Sep 11, 2024
1 parent 95c8f62 commit 633bda8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/Puppet_module_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ on:
- staging
- pre-release

env:
BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET }}
AWS_REGION: ${{ secrets.AAWS_REGION }}

permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
Expand Down Expand Up @@ -70,10 +66,10 @@ jobs:
with:
role-to-assume: ${{ secrets.AWS_IAM_PUPPET_ROLE }}
role-session-name: "Puppet module-Builder"
aws-region: "${{ env.AWS_REGION }}"
aws-region: "${{ secrets.AWS_REGION }}"
role-duration-seconds: 10800

- name: Upload Puppet module to S3
if: ${{ env.WAZUH_TAG != '' && inputs.UPLOAD_S3 == true }}
run: aws s3 cp ${{ github.workspace }}/output/*.tar.gz s3://${{ env.BUCKET_NAME }}/${{ inputs.S3_REPOSITORY }}/puppet-module/
run: aws s3 cp ${{ github.workspace }}/output/*.tar.gz s3://${{ secrets.AWS_S3_BUCKET }}/${{ inputs.S3_REPOSITORY }}/puppet-module/

0 comments on commit 633bda8

Please sign in to comment.