# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
