-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
05fd3d1
to
258e7f5
Compare
258e7f5
to
3a1d318
Compare
aws/auth/action.yml
Outdated
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}" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws/auth/action.yml
Outdated
with open(os.environ['GITHUB_OUTPUT'], 'a') as f: | ||
f.write(f"role-arn={role_arn}") | ||
|
||
- name: Configure AWS Credentials for China region audience |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woops, copy paste
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws/auth/action.yml
Outdated
f.write(f"role-arn={role_arn}") | ||
|
||
- name: Configure AWS Credentials for China region audience | ||
uses: aws-actions/configure-aws-credentials@v4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a pinned version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was successfully tested in https://github.com/elastic/apm-aws-lambda/actions/runs/9597412100/workflow?pr=491