---
title: "Comment by Steve Haney on \"Securely Access Your AWS Resources From Github Actions\" | Hashnode"
description: "Thanks for this article. So is it truly just the ARN of the Role and the repo name(s) on that Role in AWS that control the security/access b/w the Git Repo and"
url: "https://hashnode.com/posts/securely-access-your-aws-resources-from-github-actions/61c9d8021de80a7fb22807d0/comment/62f6976269fa1793160c0a8d"
---

[Discussion](https://hashnode.com/posts/securely-access-your-aws-resources-from-github-actions/61c9d8021de80a7fb22807d0)

Comment [Securely Access Your AWS Resources From Github Actions](https://hashnode.com/posts/securely-access-your-aws-resources-from-github-actions/61c9d8021de80a7fb22807d0)

[Aug 12, 2022](https://hashnode.com/posts/securely-access-your-aws-resources-from-github-actions/61c9d8021de80a7fb22807d0/comment/62f6976269fa1793160c0a8d)

Thanks for this article. So is it truly just the ARN of the Role and the repo name(s) on that Role in AWS that control the security/access b/w the Git Repo and Git Actions ability to generate operations in AWS as that role? I feel like I'm missing some other key or secret. The thumbprint seems like it has to be that specific value due to the 2022 certificate chain issue so thats not unique or a secret. Thanks!

[Benoît Bouré](https://hashnode.com/@bboure)

[Sep 22, 2022](https://hashnode.com/posts/securely-access-your-aws-resources-from-github-actions/61c9d8021de80a7fb22807d0/comment/62f6976269fa1793160c0a8d#reply-632c530e318ff0fa18337468)

Yes. From your AWS account (the "safe" side), you allow GithubActions jobs to assume the given role. For that, you add an identity provider (Github Actions is the id provider) and you allow GA "users" to assume a role.

When a job runs, it uses the ID provider to "authenticate", and assume the role.

It works like "login with Twitter", except it's with Github Actions. The job already has a GA token. It uses it to "log into AWS" and assume the role.

The key part is really `token.actions.githubusercontent.com:sub`. Without that, _ANY_ repo on GitHub would be able to authenticate and assume the role.\*\*
