> For the complete documentation index, see [llms.txt](https://docs.saml.to/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saml.to/configuration/service-providers/aws-federated-roles/roles-for-github-actions.md).

# Roles for GitHub Actions

AWS Roles can be assumed in GitHub Actions by completing two steps:

1. Edit the `saml-to.yml` to include the name of the repository that needs access to a given role
   1. [Example 1](https://github.com/stark-international/saml-to/blob/9b4ea761a1e378371e2887a9ff03aa22fc3b53ec/saml-to.yml#L28): Access granted access to `some-repo` access to `stark-international-administrator`
   2. [Example 2](https://github.com/stark-international/saml-to/blob/9b4ea761a1e378371e2887a9ff03aa22fc3b53ec/saml-to.yml#L36): Access granted to `another-repo` and within `another-org`
2. Add or modify the GitHub action for the repository:
   1. [Example 1](https://github.com/stark-international/some-repo/blob/366f094e22b283f0c2baa68d0e5e53a69cccd982/.github/workflows/push-main.yml#L13-L18): A GitHub Workflow to assume `stark-international-administrator`

See [assume-aws-role-action](https://github.com/saml-to/assume-aws-role-action) for more details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.saml.to/configuration/service-providers/aws-federated-roles/roles-for-github-actions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
