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

Add aws/auth action #63

Merged
merged 7 commits into from
Jun 20, 2024
Merged

Add aws/auth action #63

merged 7 commits into from
Jun 20, 2024

Conversation

reakaleek
Copy link
Member

@reakaleek reakaleek commented Jun 19, 2024

@reakaleek reakaleek added the changelog:feature When you add a new feature label Jun 19, 2024
@reakaleek reakaleek force-pushed the feature/aws-auth branch 2 times, most recently from 05fd3d1 to 258e7f5 Compare June 19, 2024 19:26
@reakaleek reakaleek requested a review from a team June 20, 2024 13:49
@reakaleek reakaleek marked this pull request as ready for review June 20, 2024 13:49
.github/workflows/test-aws-auth.yml Show resolved Hide resolved
m.update(f"{repository}/{worflow_filename}".encode('utf-8'))
hash = m.hexdigest()[:55]
role_name = f"gha-{hash}-role"
role_arn = f"arn:aws:iam::697149045717:role/{role_name}"
Copy link
Member

Choose a reason for hiding this comment

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

Could you customise this? We may use some other AWS accounts in the near future

Copy link
Member Author

Choose a reason for hiding this comment

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

with open(os.environ['GITHUB_OUTPUT'], 'a') as f:
f.write(f"role-arn={role_arn}")

- name: Configure AWS Credentials for China region audience
Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Member Author

Choose a reason for hiding this comment

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

woops, copy paste

Copy link
Member Author

Choose a reason for hiding this comment

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

f.write(f"role-arn={role_arn}")

- name: Configure AWS Credentials for China region audience
uses: aws-actions/configure-aws-credentials@v4
Copy link
Member

Choose a reason for hiding this comment

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

a pinned version?

Copy link
Member Author

Choose a reason for hiding this comment

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

@reakaleek reakaleek requested a review from v1v June 20, 2024 14:19
@reakaleek reakaleek self-assigned this Jun 20, 2024
@reakaleek reakaleek merged commit e91af7d into main Jun 20, 2024
5 checks passed
@reakaleek reakaleek deleted the feature/aws-auth branch June 20, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:feature When you add a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants