Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRUC-58 DevOps :: Remove Individual IAM Users and Transition to OIDC or Specific Static Credentials #282

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,12 @@ on:
PRO_LICENSE_KEY:
description: "PRO_LICENSE_KEY from the caller workflow"
required: true
GHA_AWS_KEY_ID:
description: "GHA_AWS_KEY_ID from the caller workflow"
AWS_GITHUB_OIDC_ROLE_ARN_S3_GHA:
description: "OIDC Role from the caller workflow"
required: true
GHA_AWS_KEY:
description: "GHA_AWS_KEY from the caller workflow"
required: true

env:
AWS_REGION: us-east-1
LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.PRO_LICENSE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.GHA_AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GHA_AWS_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_VERSION: "3.9.5"

Expand All @@ -93,6 +87,12 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_GITHUB_OIDC_ROLE_ARN_S3_GHA }}
aws-region: us-east-1

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -243,6 +243,12 @@ jobs:
distribution: "temurin"
cache: "maven"

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_GITHUB_OIDC_ROLE_ARN_S3_GHA }}
aws-region: us-east-1

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/sonar-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:

env:
LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.PRO_LICENSE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.GHA_AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GHA_AWS_KEY }}

steps:
- uses: actions/checkout@v4
Expand All @@ -40,6 +38,12 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_GITHUB_OIDC_ROLE_ARN_S3_GHA }}
aws-region: us-east-1

# look for dependencies in maven
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v22
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/sonar-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ jobs:
env:
AWS_REGION: us-east-1
LIQUIBASE_PRO_LICENSE_KEY: ${{ secrets.PRO_LICENSE_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.GHA_AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GHA_AWS_KEY }}

steps:
- uses: actions/checkout@v4
Expand All @@ -41,6 +39,12 @@ jobs:
distribution: 'temurin'
cache: 'maven'

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_GITHUB_OIDC_ROLE_ARN_S3_GHA }}
aws-region: us-east-1

- name: Cache SonarCloud packages
uses: actions/cache@v4
with:
Expand Down