Skip to content

Conversation

@dkan75
Copy link
Contributor

@dkan75 dkan75 commented Jul 10, 2025

No description provided.

@dkan75 dkan75 changed the title Use AWS oidc Use AWS OIDC Jul 10, 2025
@dkan75 dkan75 changed the title Use AWS OIDC [review] Use AWS OIDC Jul 10, 2025
@dkan75 dkan75 marked this pull request as ready for review July 11, 2025 00:33
Copilot AI review requested due to automatic review settings July 11, 2025 00:33
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the build-and-push workflow to leverage AWS OIDC for authentication instead of static credentials.

  • Adds job-level permissions for id-token and contents
  • Replaces manual Docker login with configure-aws-credentials and amazon-ecr-login actions
  • Applies the same OIDC-based login in both build jobs
Comments suppressed due to low confidence (2)

.github/workflows/build_and_push.yml:55

  • [nitpick] Consider extracting the hard-coded AWS region into a workflow input or environment variable to make it configurable and avoid magic strings.
          aws-region: us-east-1

.github/workflows/build_and_push.yml:53

  • [nitpick] The credential configuration and ECR login steps are duplicated across jobs; consider refactoring them into a reusable workflow or composite action to reduce repetition.
        uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1

@dkan75 dkan75 merged commit 9bbca52 into main Jul 11, 2025
45 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants