Skip to content

Commit 20c24c4

Browse files
author
bgagent
committed
Merge branch 'main' into feat/441-admission-queue-deferred-pickup
2 parents 74d3f57 + 19f4e52 commit 20c24c4

35 files changed

Lines changed: 2036 additions & 1403 deletions

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
.semgrep @aws-samples/coding-agents-admin
1919
.threat-composer @aws-samples/coding-agents-admin
2020
AGENTS.md @aws-samples/coding-agents-admin
21+
**/AGENTS.md @aws-samples/coding-agents-admin
2122
CLAUDE.md @aws-samples/coding-agents-admin
2223
CODE_OF_CONDUCT.md @aws-samples/coding-agents-admin
2324
contracts @aws-samples/coding-agents-admin

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/dead-code-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
MISE_EXPERIMENTAL: "1"
2929
steps:
3030
- name: Checkout
31-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
31+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
3232
with:
3333
persist-credentials: false
3434

3535
- name: Install mise
36-
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
36+
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
3737
with:
3838
cache: true
3939

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
actions: read
141141
steps:
142142
- name: Checkout
143-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
143+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
144144
with:
145145
persist-credentials: false
146146

@@ -153,7 +153,7 @@ jobs:
153153
github-token: ${{ github.token }}
154154

155155
- name: Configure AWS credentials
156-
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
156+
uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1
157157
with:
158158
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
159159
aws-region: ${{ vars.AWS_REGION }}
@@ -215,7 +215,7 @@ jobs:
215215
actions: read
216216
steps:
217217
- name: Checkout
218-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
218+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
219219
with:
220220
persist-credentials: false
221221

@@ -228,13 +228,13 @@ jobs:
228228
github-token: ${{ github.token }}
229229

230230
- name: Configure AWS credentials
231-
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
231+
uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1
232232
with:
233233
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
234234
aws-region: ${{ vars.AWS_REGION }}
235235

236236
- name: Install mise
237-
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
237+
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
238238
with:
239239
cache: true
240240

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/integ.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ name: integ
88
# Trigger model mirrors deploy.yml: build.yml completes -> workflow_run picks it
99
# up in the trusted base-repo context (secrets/OIDC available even for fork PRs)
1010
# -> we resolve whether the PR touches cdk/** or agent/** -> an admin approves
11-
# the `integ` environment gate -> deploy/assert/destroy runs against the shared
12-
# account -> a commit status `integ-smoke` is posted back to the PR head so it
13-
# shows up as a (required) check that blocks merge.
11+
# the `deploy` environment gate (reused — same gate and role as deploy.yml) ->
12+
# deploy/assert/destroy runs against the shared account -> a commit status
13+
# `integ-smoke` is posted back to the PR head so it shows up as a (required)
14+
# check that blocks merge.
1415
#
1516
# Local dev path is unchanged: run `mise //cdk:integ` with your own AWS creds.
1617
#
@@ -19,9 +20,10 @@ name: integ
1920
on:
2021
# zizmor: ignore[dangerous-triggers] — intentional; workflow_run is required so
2122
# fork PRs can run against the shared account (a fork `pull_request` job gets no
22-
# secrets/OIDC). Mitigations: build-success guard, path-filter, `integ`
23-
# environment approval gate (admin reviews fork test code before it runs with
24-
# the privileged role), least-privilege role, status-only tokens per job.
23+
# secrets/OIDC). Mitigations: build-success guard, path-filter, fork
24+
# `safe-to-test` label gate, `deploy` environment approval gate (admin reviews
25+
# fork test code before it runs with the deploy role), status-only tokens per
26+
# job.
2527
workflow_run:
2628
workflows: [build]
2729
types: [completed]
@@ -41,7 +43,7 @@ jobs:
4143
# docs/cli-only PRs get an immediate green (skipped) status and never deadlock
4244
# the required check.
4345
resolve:
44-
# Manual dispatch is restricted to main (defence in depth — the `integ`
46+
# Manual dispatch is restricted to main (defence in depth — the `deploy`
4547
# environment approval is the primary gate). PR runs come via workflow_run.
4648
if: >-
4749
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main') ||
@@ -131,7 +133,7 @@ jobs:
131133
132134
# Fork-PR safety: only run fork-authored code after a maintainer has
133135
# applied the `safe-to-test` label (defence in depth on top of the
134-
# `integ` environment approval). If it's absent, leave the status
136+
# `deploy` environment approval). If it's absent, leave the status
135137
# pending and don't run — re-trigger once the label is added.
136138
if [[ "$WF_HEAD_REPO" != "$REPO" ]]; then
137139
if ! LABELS=$(gh api "repos/$REPO/issues/$PR_NUMBER/labels" --jq '.[].name'); then
@@ -166,15 +168,16 @@ jobs:
166168
echo "PR #$PR_NUMBER has no cdk/** or agent/** changes — integ skipped (green)."
167169
fi
168170
169-
# The admin-gated deploy -> assert -> destroy. The `integ` environment's
170-
# required reviewer is the approval gate; while it waits, the integ-smoke
171-
# status stays pending and merge stays blocked.
171+
# The admin-gated deploy -> assert -> destroy. The `deploy` environment's
172+
# required reviewers (coding-agents-admin / coding-agents-maintainers) are the
173+
# approval gate; while it waits, the integ-smoke status stays pending and merge
174+
# stays blocked. Reuses deploy.yml's environment/role — no separate integ role.
172175
integ:
173176
needs: resolve
174177
if: needs.resolve.outputs.applicable == 'true'
175178
name: CDK integ smoke (Task API)
176179
runs-on: ubuntu-latest
177-
environment: integ
180+
environment: deploy
178181
timeout-minutes: 45
179182
permissions:
180183
id-token: write
@@ -184,25 +187,25 @@ jobs:
184187
MISE_EXPERIMENTAL: "1"
185188
steps:
186189
- name: Checkout PR head (incl. forks)
187-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
190+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
188191
with:
189-
# Approving the `integ` environment authorizes this fork-authored test
190-
# code to run with the privileged role — the approver MUST review
192+
# Approving the `deploy` environment authorizes this fork-authored test
193+
# code to run with the deploy role — the approver MUST review
191194
# cdk/test/integ/** changes before approving.
192195
repository: ${{ needs.resolve.outputs.head_repo }}
193196
ref: ${{ needs.resolve.outputs.head_sha }}
194197
persist-credentials: false
195198

196199
- name: Configure AWS credentials
197-
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
200+
uses: aws-actions/configure-aws-credentials@254c19bd240aabef8777f48595e9d2d7b972184b # v6.2.1
198201
with:
199202
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
200203
# Fall back to us-east-1 if the repo variable is unset, so the action
201204
# never runs region-less (which would fail credential resolution).
202205
aws-region: ${{ vars.AWS_REGION || 'us-east-1' }}
203206

204207
- name: Install mise
205-
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
208+
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
206209
with:
207210
cache: true
208211

.github/workflows/monthly-repo-metrics.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV"
4242
4343
- name: Report on issues
44-
uses: github/issue-metrics@1e38d5e62363e14db8019ed7d106b9855bdba6cc # v4.2.7
44+
uses: github/issue-metrics@44173f9e0a3b2144a777a10a340e4c09a25ac9f8 # v4.2.8
4545
env:
4646
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4747
SEARCH_QUERY: repo:aws-samples/sample-autonomous-cloud-coding-agents is:issue created:${{ env.last_month }} -reason:"not planned"
@@ -54,7 +54,7 @@ jobs:
5454
content-filepath: ./issue_metrics.md
5555

5656
- name: Report on PRs
57-
uses: github/issue-metrics@1e38d5e62363e14db8019ed7d106b9855bdba6cc # v4.2.7
57+
uses: github/issue-metrics@44173f9e0a3b2144a777a10a340e4c09a25ac9f8 # v4.2.8
5858
env:
5959
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6060
SEARCH_QUERY: repo:aws-samples/sample-autonomous-cloud-coding-agents is:pr created:${{ env.last_month }} -is:draft

.github/workflows/security-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ jobs:
3636
AQUA_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
steps:
3838
- name: Checkout
39-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
39+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4040
with:
4141
# Full history so the range scan can resolve the base ref. A shallow
4242
# clone would leave origin/<base> unresolvable for the commit-range diff.
4343
fetch-depth: 0
4444
persist-credentials: false
4545

4646
- name: Install mise
47-
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
47+
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
4848
with:
4949
cache: true
5050

.github/workflows/security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242
AQUA_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
steps:
4444
- name: Checkout
45-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
45+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4646
with:
4747
fetch-depth: 0
4848
persist-credentials: false
4949

5050
- name: Install mise
51-
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
51+
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
5252
with:
5353
cache: true
5454

.github/workflows/upgrade-main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ jobs:
3939
AQUA_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
steps:
4141
- name: Checkout
42-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
42+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
4343
with:
4444
ref: main
4545
persist-credentials: false
4646

4747
- name: Install mise
48-
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4.1.0
48+
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
4949
with:
5050
cache: true
5151

@@ -84,7 +84,7 @@ jobs:
8484
if: ${{ needs.upgrade.outputs.patch_created }}
8585
steps:
8686
- name: Checkout
87-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
87+
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
8888
with:
8989
ref: main
9090
persist-credentials: false

0 commit comments

Comments
 (0)