BM: Baca dalam Bahasa Melayu
World C3: Release & Deploy
OIDC: no long-lived keys
You will learn: how a workflow gets a short-lived cloud key for one job, instead of storing a key forever.
Checked with GitHub Actions 2026-10 on 31 Oct 2026
The problem
Tap each point on the timeline.
A key that never expires is a key waiting to leak. Tap the story. What if keys lasted one job only?
Watch
OIDC (OpenID Connect): The runner shows a visitor badge for one job. The cloud checks it and lends a key that expires when the job ends. swaps the stored key for a visitor badge. The badge works for one job, then melts. Put the steps in order.
First step at the top. Put these in order. Use the arrows, or drag.
- The cloud lends a short-lived key
- The job asks GitHub for an ID token
- It shows the token to the cloud
- The cloud checks the repo and environment
- The key expires when the job ends
Try it
Build an OIDC deploy to AWS. No keys in secrets.
Tap blocks to add them. Put them in order.
Blocks
Your workflow
Tap a block above to start.
Workflow file .github/workflows/
name: Deploy to AWS
What runs
Nothing to run yet.
Hint
Trigger, the permission that allows a badge, the job, then the steps.Predict
You forget id-token: write. What happens?
Pick one answer.
Check
The cloud decides whom to trust. Are these trust rules good, or do they need work?
Swipe right for good, left for needs work. Or use the buttons.
Trust only repo you/shop, environment production.
Check
One honest catch: Cloudflare’s Wrangler still needs an API token in CI. How should you keep it?
Pick one answer.
You did it!
You can now deploy to a cloud with no stored keys.
Go deeper (optional)
The cloud reads claims inside the badge. The subject names the repo and environment, like repo:you/shop:environment:production. Repos made after 15 July 2026 use a newer format with ids. So copy the exact rule your cloud’s docs show.
Real rep (optional): follow your cloud’s GitHub OIDC guide on a test account.
Bahasa Melayu
Kunci yang tak pernah luput ialah kunci yang menunggu untuk bocor. Tekan kisahnya. Bagaimana kalau kunci hanya tahan untuk satu job?
OIDC tukar kunci tersimpan dengan pas pelawat. Pas itu sah untuk satu job, kemudian cair. Susun langkahnya.
Bina deploy OIDC ke AWS. Tiada kunci dalam secrets.
Anda terlupa id-token: write. Apa jadi?
Cloud yang tentukan siapa dipercayai. Peraturan percaya ini bagus, atau perlu diperbaiki?
Satu hal yang jujur: Wrangler Cloudflare masih perlukan token API dalam CI. Macam mana nak simpan?
Kini anda boleh deploy ke cloud tanpa kunci tersimpan.
You finished this before. Practice is always welcome!
Official docs: OpenID Connect in GitHub Actions · OIDC reference (id-token: write, claims) · aws-actions/configure-aws-credentials · Cloudflare: Workers in GitHub Actions
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?