AWS Builder Center
kiro-action: run Kiro in your GitHub workflows

kiro-action: run Kiro in your GitHub workflows

Kiro GitHub Action that puts Kiro to work on your issues and pull requests. Label a task, comment /kiro, or run it on a schedule — Kiro reads the context, writes the code, and opens a PR.

Startups @ AWS

From issue to merged PR, without the context switch: introducing kiro-action

There's an issue in your backlog. It's well-specified and it's been sitting there for two weeks because nobody wants to context-switch into it. Three months ago you'd have assigned it to someone and waited. Today you add one label  kiro  and walk away.
A few minutes later there's a PR. Kiro read the issue body as the spec, wrote the code, and opened a pull request, updating a progress comment as it worked. You review it and let's say, notice it's missing tests. So you leave a comment on the PR:
/kiro add tests for this
Kiro pushes a second commit to the same branch — no checkout, no second PR. You merge.
That's the whole pitch. Here it is end-to-end against a small demo app:

Label to PR, then self-fix from a comment — the  GET /tasks/stats  story above, start to finish, against a small demo app.
The label-and-walk-away part is one trigger of four, and the self-revising-PR part is the loop underneath all of them. The rest of this post is everything else you can wire up.

What just shipped

 kiro-action  is a GitHub Action that runs  Kiro  — AWS's agentic IDE and command-line interface — directly inside your CI. It's built on Kiro's  headless mode , the same  kiro-cli  you'd run locally, just wired into GitHub events: comments, labels, assignments, and explicit prompts on a schedule.
It's available now on the  GitHub Marketplace . The whole quickstart is one workflow file:
name: Kiro

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [labeled, assigned]
pull_request:
types: [labeled, assigned]

jobs:
kiro:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: kirodotdev-labs/kiro-action@v0
with:
kiro_api_key: ${{ secrets.KIRO_API_KEY }}
Drop that into  .github/workflows/kiro.yml , add  KIRO_API_KEY  as a repo secret, and  /kiro  is live.

Four triggers, three shapes of work

The action detects what to do from the GitHub event payload. There are four trigger modes, but they're really three shapes of work:
Trigger
Activates on
When to use
comment
 /kiro <instruction>  on any issue or PR
Ad-hoc, you have a specific instruction in mind
label
 kiro  label added to an issue or PR
"The issue body is the spec — go implement it"
auto
Workflow with  prompt:  input set
Scheduled runs, PR review automation, anything event-driven
assign
Issue or PR assigned to the  kirocli  user
Same shape as label, but most teams find labels lighter weight
Detection priority is  auto > comment > label > assign , so a single workflow file can listen for all of them without conflicts. The pattern I see most often: one  kiro.yml  for  /kiro  comments and  kiro  labels, plus dedicated workflows for whatever scheduled or PR-event automation a team wants. They compose.
A note on trust: comment and label triggers check that the actor has write access to the repo before running anything, so a drive-by  /kiro rm -rf /  from a random commenter on an open-source repo doesn't get a free shell.
Comment mode isn't limited to one-line fixes, either. A single  /kiro  can drive a change that spans the whole stack:

One comment, a full-stack UI change. A  /kiro  comment asks for task status counts in a dashboard header. Kiro edits three files —  index.html ,  app.js , and  style.css  — matching the app's existing design, and opens a PR. Once merged, the live dashboard shows todo / in-progress / done / total counters that update as tasks change.

Three patterns, walked end-to-end

The nine examples cover a lot of ground, but three of them solve pains I think most teams will recognize.

1. Scoped security review on the paths that actually matter

The pain: "AI review every PR" workflows look great in a demo and turn into noise in a week or two. The reviewer leaves comments on the dependency bump PR, on the doc-fix PR, on the typo PR — and after a sprint everyone learns to scroll past anything from  github-actions[bot] .
The fix: scope it. Run a security-focused review only on PRs that actually touch sensitive paths.
on:
pull_request:
paths:
- 'src/auth/**'
- 'src/billing/**'
- 'src/api/**'
- 'infra/**'

jobs:
security-review:
steps:
- uses: actions/checkout@v4
- uses: kirodotdev-labs/kiro-action@v0
with:
kiro_api_key: ${{ secrets.KIRO_API_KEY }}
prompt: |
Review this PR for security issues using the OWASP Top 10
as a checklist. Comment on findings inline. If you find
nothing, post a single approval comment.
The path filter is the lever. It works for any review pattern — change  paths:  to  migrations/**  and the same workflow becomes "review all schema changes," or to  terraform/**  and it's "review infra changes." See   security-review.yml   for the full version.

2. Weekly dependency upgrade PR

The pain: dependency upgrades rot. Dependabot opens 30 PRs and you merge none of them because each one is a context switch. Three months later you're on the wrong side of a CVE.
The fix: one PR, once a week, with the bumps batched and a human-readable summary of what changed.
on:
schedule:
- cron: '0 9 * * MON'
workflow_dispatch:

jobs:
audit:
steps:
- uses: actions/checkout@v4
- uses: kirodotdev-labs/kiro-action@v0
with:
kiro_api_key: ${{ secrets.KIRO_API_KEY }}
prompt: |
Audit dependencies for outdated versions and known CVEs.
Bump anything safe (patch, minor). For majors, list them
in the PR body with breaking-change notes but don't apply.
Open a single PR titled "deps: weekly audit".
This is  auto  mode — no comment, no label, just an explicit  prompt:  and a cron. The Monday-morning PR becomes a five-minute review instead of a three-hour cleanup. See   dependency-audit.yml  .

3. Auto-fix failing CI on PR branches

The pain: an external contributor opens a PR. CI goes red. Maintainer is on the other side of the world. The PR sits for 18 hours waiting on someone to look at the log, recognize the lint failure, and push a one-line fix. Half the time the contributor gives up.
The fix: when CI fails on a PR branch, Kiro reads the logs and pushes a fix.
on:
workflow_run:
workflows: ['CI']
types: [completed]

jobs:
fix:
if: github.event.workflow_run.conclusion == 'failure'
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_branch }}
fetch-depth: 0
- uses: kirodotdev-labs/kiro-action@v0
with:
kiro_api_key: ${{ secrets.KIRO_API_KEY }}
prompt: |
CI failed on this branch. Pull the workflow logs, identify
the failure, fix it, and push to the same branch. If the
failure is something you can't safely fix (test logic
change, ambiguous behavior), comment on the PR instead.
This is the agentic loop end-to-end: read logs, reason about the failure, edit code, push, let CI re-run. It's also the example I'd start with if you want to see what Kiro actually does — green-after-red is a satisfying demo. See   ci-failure-fix.yml  .

The unglamorous parts that matter

Most of this post has been about what Kiro does once it's running. Two things to know before you wire it up.
Permissions. The comment and label modes need write access to push branches, post progress comments, and open PRs:
permissions:
contents: write # push branches
issues: write # progress comments
pull-requests: write # open PRs
For pure review or triage workflows that never commit code,  contents: read  is enough. Each example workflow in the repo declares the minimal permission set it needs — copy from the one closest to your use case rather than over-permissioning by default.
Auth. Today, the action authenticates with a  KIRO_API_KEY  from your Kiro account, set as a repo secret. The action passes it to  kiro-cli  via environment variable — it's not logged, not interpolated into the prompt, not exposed to the agent. Standard GitHub Actions secret hygiene applies (don't  echo $KIRO_API_KEY , don't pass it as a positional arg).
AWS IAM / SIGV4 authentication is on Kiro's upstream roadmap ( kirodotdev/kiro#5938 ). Once it lands, the action will support short-lived role-based credentials via OIDC — no long-lived API key in repo secrets, which is the version you'll want for any production-adjacent repo.

Why this exists

There wasn't an official Kiro GitHub Action when I started. The Kiro community had setup helpers and a couple of narrow PR-review wrappers, but nothing with the full agentic loop — read context, write code, open a PR, update progress as it goes. If you've used   anthropics/claude-code-action  , kiro-action will feel familiar; that's the model I built against, adapted to Kiro's headless mode and prompt conventions.
The repo lives at  kirodotdev-labs/kiro-action   and is published on the  GitHub Marketplace . It's MIT-licensed, the bundled  dist/index.js  is checked in, and contributions are welcome — particularly more example workflows for patterns I haven't thought of.
Next time you spot something in a PR you weren't even reviewing, you don't have to context-switch. Type  /kiro , walk away, come back to a PR.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article