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

---
title: Are You Still Storing AWS Access Keys in GitHub Actions?
description: A discussion post raises the question of why teams still store long-lived AWS access keys in GitHub Actions when OIDC allows workflows to authenticate with AWS...
canonical: https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--0tylpdne2
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: A discussion post raises the question of why teams still store long-lived AWS access keys in GitHub Actions when OIDC allows workflows to authenticate with AWS...
og:url: https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--0tylpdne2
og:image: https://api.daily.dev/og/posts/0tyLPDne2.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 & Platform Engineering Hub](https://daily.dev/sources/sanjay)** · [@divyansh30](https://daily.dev/divyansh30) · 1 min read · 0 upvotes · 0 comments

## Summary

A discussion post raises the question of why teams still store long-lived AWS access keys in GitHub Actions when OIDC allows workflows to authenticate with AWS and obtain short-lived credentials instead. It outlines the flow (GitHub Actions to OIDC token to AWS STS to temporary credentials), notes that IAM roles can restrict access by repository and branch, and poses questions to readers about their own CI/CD credential practices, linking out to an external walkthrough for 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.

[Read the full AWS OIDC walkthrough](https://www.kubeblogs.com/secure_aws_resources_using_oidc/?utm_source=chatgpt.com)

**Are long-lived AWS credentials still part of your CI/CD setup?**

#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
- [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
- [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
- [Eliminating Long-Lived Credentials in GCP with Workload Identity Federation](https://daily.dev/posts/eliminating-long-lived-credentials-in-gcp-with-workload-identity-federation-1cwaxayl4) · InfoQ · 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: [#security](https://daily.dev/tags/security), [#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)

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

```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--0tylpdne2","headline":"Are You Still Storing AWS Access Keys in GitHub Actions?","text":"A discussion post raises the question of why teams still store long-lived AWS access keys in GitHub Actions when OIDC allows workflows to authenticate with AWS and obtain short-lived credentials instead. It outlines the flow (GitHub Actions to OIDC token to AWS STS to temporary credentials), notes that IAM roles can restrict access by repository and branch, and poses questions to readers about their own CI/CD credential practices, linking out to an external walkthrough for setup details.","url":"https://daily.dev/posts/are-you-still-storing-aws-access-keys-in-github-actions--0tylpdne2","datePublished":"2026-09-14T04:24:53.868Z","dateModified":"2026-09-14T04:27:45.527Z","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---aO-C_nw--/f_auto/v1789360065/posts/0tyLPDne2?_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/sanjay","name":"DevOps \u0026 Platform Engineering Hub"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"DevOps \u0026 Platform Engineering Hub","item":"https://daily.dev/squads/sanjay"},{"@type":"ListItem","position":3,"name":"Are You Still Storing AWS Access Keys in GitHub Actions?"}]}
```

