Skip to content

Support additional session tags like GITHUB_BASE_REF and GITHUB_EVENT_NAME #390

Description

@jsimoni

We'd like to be create a trust document on the AWS Role assumed by GitHub Action workflow that only authorizes a workflow that runs on a pull request that targets a specific branch. In order to do that, we would need this GitHub Action to populate Session Tags with the values in the GITHUB_BASE_REF & GITHUB_EVENT_NAME environmental variables.

https://github.com/aws-actions/configure-aws-credentials#session-tagging

Activity

  1. added
    needs-triage
    on Oct 4, 2022
  2. peterwoodworth commented on Oct 10, 2022

    @peterwoodworth
    Contributor

    We should be able to support additional, non-required environment variables as session tags. Thanks for the suggestion!

    Documentation here for future reference

  3. added
    effort/small
    and removed
    needs-triage
    on Oct 10, 2022
  4. peterwoodworth commented on Oct 10, 2022

    @peterwoodworth
    Contributor

    You can currently work around your specific issue through your action configuration like so until we may implement this:

    on:
      pull_request_target:
        types:
          - opened
        branches:    
          - 'master'
      push:
        branches:    
          - 'master'
    
  5. peterwoodworth commented on Oct 11, 2022

    @peterwoodworth
    Contributor

    When we implement this I think the expectation is that you would add PrincipalTag to the condition in your trust policy, is that correct?

  6. jsimoni commented on Oct 11, 2022

    @jsimoni
    Author

    @peterwoodworth, yes that's correct.

  7. added
    feature-request
    on Oct 11, 2022
  8. changed the title [-]GITHUB_BASE_REF & GITHUB_EVENT_NAME Session Tag[/-] [+]Support additional session tags like GITHUB_BASE_REF and GITHUB_EVENT_NAME[/+] on Oct 11, 2022
  9. indy-singh commented on Mar 11, 2025

    @indy-singh

    When we implement this I think the expectation is that you would add PrincipalTag to the condition in your trust policy, is that correct?

    @peterwoodworth is there any plans to do this?

    Or are you happy to accept a PR?

  10. peterwoodworth commented on Mar 11, 2025

    @peterwoodworth
    Contributor

    Hi @indy-singh, I don't work on this action anymore. I can't speak for what the current plans are or what bandwidth the owners have right now. Let me ask around, looks to me like this repo needs some love.

  11. added 4 commits that reference this issue on May 13, 2026
    a9fcd30
    5b4b79f
    bdfec65
    9ca5412
  12. github-actions commented on May 13, 2026

    @github-actions

    Comments on closed issues are hard for our team to see.
    If you need more assistance, please either tag a team member or open a new issue that references this one.

  13. added a commit that references this issue on May 16, 2026
    e0ba768
  14. added 2 commits that reference this issue on May 26, 2026
    87eb0cf
    4ab3589
  15. added a commit that references this issue on Jun 26, 2026
    628f21f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/smallfeature-requestp2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions