Skip to content

Commit d55298d

Browse files
maiquanghiepclaude
andauthored
fix(gh-pages): use gha-s3-frontend-push role for build-artifacts upload (#436)
* security: migrate from vulnerable gha-deployment to secure role * fix(gh-pages): use gha-s3-frontend-push role for build-artifacts upload The deployment role is read-only on build-artifact buckets by design; PutObject is denied. Switch to gha-s3-frontend-push, which grants write on artifact buckets (and intentionally omits DeleteObject to prevent artifact tampering). Requires babylonlabs-io/terraform#235 to be applied first so the push role's trust policy permits this repo. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
1 parent e3adfb2 commit d55298d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ jobs:
7474
- name: Configure AWS credentials
7575
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4.3.1 https://github.com/aws-actions/configure-aws-credentials/releases/tag/v4.3.1
7676
with:
77-
role-to-assume: arn:aws:iam::${{ matrix.account }}:role/gha-s3-frontend-deployment
78-
role-session-name: gha-s3-frontend-deployment
77+
role-to-assume: arn:aws:iam::${{ matrix.account }}:role/gha-s3-frontend-push
78+
role-session-name: gha-s3-frontend-push
7979
aws-region: ${{ vars.AWS_ECR_REGION }}
8080

8181
# Upload to S3

0 commit comments

Comments
 (0)