open-swe/.github/workflows
Adam Moussa cfbdcda9b7
fix: instance role BatchGetSecretValue + ListSecrets for .env materialization (#22)
* fix(infra): grant instance role BatchGetSecretValue + ListSecrets for .env materialization

fetch-config.sh materializes the box's .env via
`secretsmanager batch-get-secret-value --filters Key=name,Values=open-swe-<env>/`,
but the instance role only granted GetSecretValue/DescribeSecret. BatchGetSecretValue
is a distinct IAM action, so the call was AccessDenied and open-swe.service
crash-looped (no .env written -> ExecStartPre exit 1).

- Add secretsmanager:BatchGetSecretValue to the prefix-scoped ReadSecrets statement.
- Add secretsmanager:ListSecrets on * (required by the name-prefix filtered batch
  call; the API has no resource-level scoping for the list action — fits the role's
  stated exception). Secret VALUES stay prefix-scoped; only names are enumerable.

Reviews: GPT-4.1 IAM cross-review BLOCK=none; /sh-security-review iac-iam one LOW
metadata residual (no critical/high), recorded as OSWE-IAC-SECRETS-LIST-01.

Refs T7/T19 dev bring-up.

* ci: lift Node heap cap for Playwright E2E build (vite OOM)

The E2E job's Playwright globalSetup runs the real `bun run build`, whose vite
bundle exceeds Node's default ~2 GB heap and OOMs (JavaScript heap out of memory) —
the same failure fixed for build-artifacts.yml in #19. Set
NODE_OPTIONS=--max-old-space-size=8192 on the Run E2E step.
2026-06-26 19:29:50 -04:00
..
build-artifacts.yml fix(deploy): use %%...%% for CDK user-data tokens (don't collide with @@ sed) (#21) 2026-06-26 19:06:37 -04:00
cd-infra.yml ci: path-filtered infra CI/CD + dual OIDC roles + prod approval gate (T18) (#15) 2026-06-26 16:11:22 -04:00
ci-infra.yml ci: path-filtered infra CI/CD + dual OIDC roles + prod approval gate (T18) (#15) 2026-06-26 16:11:22 -04:00
ci.yml fix: instance role BatchGetSecretValue + ListSecrets for .env materialization (#22) 2026-06-26 19:29:50 -04:00
pr_lint.yml chore(deps): bump python-dotenv from 1.2.1 to 1.2.2 (#1212) 2026-05-01 22:27:21 +00:00
promote_dev_to_prod.yml ci: promote dev → main (prod), not a separate prod branch (#3) 2026-06-26 13:49:02 -04:00
reviewer_eval.yml feat: Run reviewer eval in a GitHub Action; dashboard becomes read-only (#1556) 2026-06-16 19:38:36 -07:00