Skip to content

Commit

Permalink
feat/prowler shared workflow for AWS and GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
Bharadwajshivam28 committed Jul 31, 2024
1 parent dd0624b commit 0d2a402
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/prowler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ on:
SERVICE_ACCOUNT:
required: false
description: 'GCP service account'
BUILD_ROLE:
required: false
description: 'AWS OIDC role for aws authentication.'
AWS_ACCESS_KEY_ID:
required: false
description: AWS Access Key ID to install AWS CLI.
Expand Down Expand Up @@ -67,7 +70,10 @@ jobs:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
role-to-assume: ${{ secrets.BUILD_ROLE }}
aws-region: ${{ inputs.aws_region }}
role-duration-seconds: 900
role-skip-session-tagging: true

- name: Run Prowler for GCP
if: ${{ inputs.cloud_provider == 'gcp' }}
Expand Down

0 comments on commit 0d2a402

Please sign in to comment.