Skip to content

Commit 9195eb3

Browse files
delgado3ddarora
authored andcommitted
fix: migrations release workflow permissions
1 parent 02539cc commit 9195eb3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish-migrations.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build:
1010
runs-on: [self-hosted, linux]
1111
timeout-minutes: 15
12+
permissions:
13+
id-token: write
14+
contents: read
1215

1316
steps:
1417
- name: Checkout Repo
@@ -30,13 +33,13 @@ jobs:
3033
env:
3134
AWS_S3_BUCKET: ${{ secrets.PG_INIT_SCRIPT_S3_BUCKET_STAGING }}
3235

33-
- name: configure aws credentials - staging
36+
- name: configure aws credentials - prod
3437
uses: aws-actions/configure-aws-credentials@v1
3538
with:
3639
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
3740
aws-region: "ap-southeast-1"
3841

39-
- name: Deploy to S3 staging
42+
- name: Deploy to S3 prod
4043
shell: bash
4144
run: aws s3 sync migrations/db s3://$AWS_S3_BUCKET/migrations/db --delete
4245
env:

0 commit comments

Comments
 (0)