Skip to content

Default role-session-name to ${{ github.run_id}} to improve CloudTrail experience #1298

@arianvp

Description

@arianvp

Describe the feature

Could we default role-session-name to ${{ github.run_id }}?

Use Case

I want to correlate which AWS actions were performed by which workflow run in audit logs.
The CloudTrail log for sts:AssumeRoleWithWebIdentity unfortunately only logs the sub and aud claims but not the other claims of the Github ID token. This means I can not correlate back which run called the assume-role, leaving a hole in auditability.

If we'd set the role-session-name to the run-id then we can correlate actions performed in CloudTrail back to the run that executed them.

Proposed Solution

Default role-session-name to ${{ github.run_id }}

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions