<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--rpzcfkg47" -->

---
title: Are You Still Storing AWS Access Keys in GitHub Actions?
description: Storing long-lived AWS access keys in GitHub Secrets is unnecessary when OIDC is available. GitHub Actions can exchange an OIDC token via AWS STS for...
canonical: https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--rpzcfkg47
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Are You Still Storing AWS Access Keys in GitHub Actions? | daily.dev
og:description: Storing long-lived AWS access keys in GitHub Secrets is unnecessary when OIDC is available. GitHub Actions can exchange an OIDC token via AWS STS for...
og:url: https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--rpzcfkg47
og:image: https://api.daily.dev/og/posts/rpZcFkg47.png
og:image:alt: Are You Still Storing AWS Access Keys in GitHub Actions?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Are You Still Storing AWS Access Keys in GitHub Actions?

**[DevOps Daily](https://daily.dev/sources/devopsdaily)** · [@divyansh30](https://daily.dev/divyansh30) · 1 min read · 0 upvotes · 0 comments

## Summary

Storing long-lived AWS access keys in GitHub Secrets is unnecessary when OIDC is available. GitHub Actions can exchange an OIDC token via AWS STS for short-lived credentials, with an IAM role controlling which repositories, branches, and resources a workflow can access. The post poses discussion questions to DevOps teams about their adoption of OIDC, IAM trust policy scoping, and challenges migrating away from static credentials, and links to an external walkthrough covering setup details.

## Content

If your CI/CD pipeline needs access to AWS, storing long-lived access keys in GitHub Secrets might seem like the easiest approach.

But your GitHub workflow doesn't necessarily need a permanent AWS credential.

With **OIDC**, GitHub Actions can authenticate with AWS and obtain short-lived credentials for the workflow.

The basic flow is:

**GitHub Actions → OIDC token → AWS STS → temporary credentials**

You can then use an IAM role to control which repositories, branches, and AWS resources the workflow can access.

The main advantage is simple: **no long-lived AWS access key needs to sit in GitHub Secrets.**

I'm curious how other DevOps teams handle AWS authentication in CI/CD:

- Are you still using AWS access keys in GitHub Actions?
- Have you migrated to OIDC?
- How tightly do you scope your IAM trust policies?
- Do you restrict access by repository and branch?
- What was the biggest challenge when moving away from static credentials?

I came across a practical walkthrough covering the AWS + GitHub OIDC setup, IAM trust policy, permissions, and workflow configuration.

[https://www.kubeblogs.com/secure_aws_resources_using_oidc/](https://www.kubeblogs.com/secure_aws_resources_using_oidc/)

#DevOps #PlatformEngineering #AWS #GitHubActions #CloudSecurity #CICD

## Similar posts on daily.dev

- [Connect GitHub Actions to AWS with OIDC \(No Access Keys\)](https://daily.dev/posts/connect-github-actions-to-aws-with-oidc-no-access-keys--d4kysoafb) · AWS Fundamentals · 0 upvotes · 0 comments
- [How We Eliminated Long-Lived CI Secrets Across 70\+ Repos](https://daily.dev/posts/how-we-eliminated-long-lived-ci-secrets-across-70-repos-4qm6oazyn) · Pulumi · 0 upvotes · 0 comments
- [Replace Docker Access Tokens in GitHub Actions with an OIDC Connection — Nick Janetakis](https://daily.dev/posts/replace-docker-access-tokens-in-github-actions-with-an-oidc-connection-nick-janetakis-q9asfbvcc) · Nick Janetakis · 0 upvotes · 0 comments
- [I Need My CI/CD Pipeline to Access Cosmos DB Without Using a Secret](https://daily.dev/posts/i-need-my-ci-cd-pipeline-to-access-cosmos-db-without-using-a-secret-a6ied0fmf) · DevBlogs · 0 upvotes · 0 comments

---

Tags: [#aws](https://daily.dev/tags/aws), [#cicd](https://daily.dev/tags/cicd), [#authentication](https://daily.dev/tags/authentication), [#github-actions](https://daily.dev/tags/github-actions), [#iam](https://daily.dev/tags/iam)

[View this post on daily.dev](https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--rpzcfkg47)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--rpzcfkg47","headline":"Are You Still Storing AWS Access Keys in GitHub Actions?","text":"Storing long-lived AWS access keys in GitHub Secrets is unnecessary when OIDC is available. GitHub Actions can exchange an OIDC token via AWS STS for short-lived credentials, with an IAM role controlling which repositories, branches, and resources a workflow can access. The post poses discussion questions to DevOps teams about their adoption of OIDC, IAM trust policy scoping, and challenges migrating away from static credentials, and links to an external walkthrough covering setup details.","url":"https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--rpzcfkg47","datePublished":"2026-09-14T05:04:30.842Z","dateModified":"2026-09-14T05:04:45.480Z","author":{"@type":"Person","name":"Divyansh","url":"https://daily.dev/divyansh30","image":"https://media.daily.dev/image/upload/s--f9lbkpFv--/f_auto/v1744873189/avatars/avatar_JMQ4qarKTe7zPurSPRrzM","description":"Aspiring engineer with an interest in AI, tech and DevOps :)","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":1090}},"image":"https://media.daily.dev/image/upload/s--4hkbLSzU--/f_auto/v1789359972/posts/saLkv7ug5?_a=BAMAMicg0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/devopsdaily","name":"DevOps Daily"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevOps Daily","item":"https://daily.dev/squads/devopsdaily"},{"@type":"ListItem","position":3,"name":"Are You Still Storing AWS Access Keys in GitHub Actions?"}]}
```

