Skip to content

Commit e4a8817

Browse files
authored
Upgrade GitHub Actions to latest versions (#2346)
## Summary Upgrade GitHub Actions to their latest versions for improved features, bug fixes, and security updates. ## Changes | Action | Old Version(s) | New Version | Release | Files | |--------|---------------|-------------|---------|-------| | `aws-actions/configure-aws-credentials` | [`v1`](https://github.com/aws-actions/configure-aws-credentials/releases/tag/v1), [`v4.1.0`](https://github.com/aws-actions/configure-aws-credentials/releases/tag/v4.1.0) | [`v5.1.1`](https://github.com/aws-actions/configure-aws-credentials/releases/tag/v5.1.1) | [Release](https://github.com/aws-actions/configure-aws-credentials/releases/tag/v5) | publish.yml, release.yml | | `docker/build-push-action` | [`v3`](https://github.com/docker/build-push-action/releases/tag/v3) | [`v6`](https://github.com/docker/build-push-action/releases/tag/v6) | [Release](https://github.com/docker/build-push-action/releases/tag/v6) | publish.yml | | `docker/login-action` | [`v2`](https://github.com/docker/login-action/releases/tag/v2) | [`v3`](https://github.com/docker/login-action/releases/tag/v3) | [Release](https://github.com/docker/login-action/releases/tag/v3) | publish.yml | | `docker/metadata-action` | [`v4`](https://github.com/docker/metadata-action/releases/tag/v4) | [`v5`](https://github.com/docker/metadata-action/releases/tag/v5) | [Release](https://github.com/docker/metadata-action/releases/tag/v5) | publish.yml | | `docker/setup-buildx-action` | [`v2`](https://github.com/docker/setup-buildx-action/releases/tag/v2) | [`v3`](https://github.com/docker/setup-buildx-action/releases/tag/v3) | [Release](https://github.com/docker/setup-buildx-action/releases/tag/v3) | publish.yml | | `docker/setup-qemu-action` | [`v2`](https://github.com/docker/setup-qemu-action/releases/tag/v2) | [`v3`](https://github.com/docker/setup-qemu-action/releases/tag/v3) | [Release](https://github.com/docker/setup-qemu-action/releases/tag/v3) | publish.yml | ## Why upgrade? Keeping GitHub Actions up to date ensures: - **Security**: Latest security patches and fixes - **Features**: Access to new functionality and improvements - **Compatibility**: Better support for current GitHub features - **Performance**: Optimizations and efficiency improvements ### Security Note Actions that were previously pinned to commit SHAs remain pinned to SHAs (updated to the latest release SHA) to maintain the security benefits of immutable references. ### Testing These changes only affect CI/CD workflow configurations and should not impact application functionality. The workflows should be tested by running them on a branch before merging. Signed-off-by: Salman Muin Kayser Chishti <13schishti@gmail.com>
1 parent 1dfd6a3 commit e4a8817

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/checkout@v6
2525

2626
- id: meta
27-
uses: docker/metadata-action@v4
27+
uses: docker/metadata-action@v5
2828
with:
2929
images: |
3030
supabase/gotrue
@@ -42,7 +42,7 @@ jobs:
4242
tags: |
4343
type=raw,value=v${{ inputs.version }},enable=true
4444
45-
- uses: docker/setup-qemu-action@v2
45+
- uses: docker/setup-qemu-action@v3
4646
with:
4747
platforms: amd64,arm64
4848

@@ -53,46 +53,46 @@ jobs:
5353
5454
sed -i 's/RELEASE_VERSION=unspecified/RELEASE_VERSION=${{ inputs.version }}/' Dockerfile
5555
56-
- uses: docker/setup-buildx-action@v2
56+
- uses: docker/setup-buildx-action@v3
5757

5858
- name: Login to DockerHub
59-
uses: docker/login-action@v2
59+
uses: docker/login-action@v3
6060
with:
6161
username: ${{ secrets.DOCKER_USERNAME }}
6262
password: ${{ secrets.DOCKER_PASSWORD }}
6363

6464
- name: configure aws credentials - prod
65-
uses: aws-actions/configure-aws-credentials@v1
65+
uses: aws-actions/configure-aws-credentials@v5
6666
with:
6767
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
6868
aws-region: us-east-1
6969
- name: Login to ECR
70-
uses: docker/login-action@v2
70+
uses: docker/login-action@v3
7171
with:
7272
registry: public.ecr.aws
7373
- name: Login to ECR account - prod
74-
uses: docker/login-action@v2
74+
uses: docker/login-action@v3
7575
with:
7676
registry: 646182064048.dkr.ecr.us-east-1.amazonaws.com
7777

7878
- name: configure aws credentials - staging
79-
uses: aws-actions/configure-aws-credentials@v1
79+
uses: aws-actions/configure-aws-credentials@v5
8080
with:
8181
role-to-assume: ${{ secrets.DEV_AWS_ROLE }}
8282
aws-region: us-east-1
8383
- name: Login to ECR account - staging
84-
uses: docker/login-action@v2
84+
uses: docker/login-action@v3
8585
with:
8686
registry: 436098097459.dkr.ecr.us-east-1.amazonaws.com
8787

8888
- name: Login to GHCR
89-
uses: docker/login-action@v2
89+
uses: docker/login-action@v3
9090
with:
9191
registry: ghcr.io
9292
username: ${{ github.actor }}
9393
password: ${{ secrets.GITHUB_TOKEN }}
9494

95-
- uses: docker/build-push-action@v3
95+
- uses: docker/build-push-action@v6
9696
with:
9797
context: . # IMPORTANT: Dockerfile is modified above to include the release version. Don't remove this line: https://github.com/docker/build-push-action?tab=readme-ov-file#git-context
9898
push: true

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ jobs:
135135
136136
- name: GitHub OIDC Auth
137137
if: ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
138-
uses: aws-actions/configure-aws-credentials@v4.1.0
138+
uses: aws-actions/configure-aws-credentials@v5.1.1
139139
with:
140140
aws-region: ap-southeast-1
141141
role-to-assume: arn:aws:iam::${{ secrets.SHARED_SERVICES_AWS_ACCOUNT_ID }}:role/supabase-github-oidc-role
142142
role-session-name: shared-services-jump
143143

144144
- name: Assume destination role
145-
uses: aws-actions/configure-aws-credentials@v4.1.0
145+
uses: aws-actions/configure-aws-credentials@v5.1.1
146146
if: ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
147147
with:
148148
aws-region: ap-southeast-1

0 commit comments

Comments
 (0)