Skip to content

Commit 38ec044

Browse files
authored
Update outdated GHA workflow versions (#1820)
This updates outdated workflow versions to ones that use Node 20, silencing the warnings from GHA about workflows using Node 16. Also, the actions/checkout@v3 workflows are deprecated and must be moved to v4 by the end of 2024. Finally, in the case of a couple of small third-party workflows, I switched to SHA references as recommended in GHA workflow best practices.
1 parent 9f51fab commit 38ec044

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/build-and-publish-base-php.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ jobs:
1313
IMAGE: sillsdev/web-languageforge:base-php
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717

18-
- uses: docker/setup-qemu-action@v2
18+
- uses: docker/setup-qemu-action@v3
1919

20-
- uses: docker/setup-buildx-action@v2
20+
- uses: docker/setup-buildx-action@v3
2121
with:
2222
platforms: linux/amd64
2323

2424
- name: Log in to Docker Hub
25-
uses: docker/login-action@v2
25+
uses: docker/login-action@v3
2626
with:
2727
username: ${{ secrets.DOCKERHUB_USERNAME }}
2828
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
-
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
-
2222
uses: pnpm/action-setup@v4
2323
-
@@ -26,7 +26,7 @@ jobs:
2626
-
2727
name: Upload Playwright test results
2828
if: always()
29-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
3030
with:
3131
name: test-results-${{ matrix.browser }}-${{ matrix.shard }}
3232
path: test/e2e/test-results

.github/workflows/integrate-and-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
steps:
3636
-
37-
uses: actions/checkout@v3
37+
uses: actions/checkout@v4
3838
-
3939
run: |
4040
docker --version

.github/workflows/pull-request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
outputs:
2121
status: ${{ steps.check-labels.outputs.status }}
2222
steps:
23-
- uses: mheap/github-action-required-labels@v3
23+
- uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5.4.1
2424
id: check-labels
2525
with:
2626
mode: exactly
2727
count: 1
2828
labels: "bug, feature, engineering, security fix, testing"
29-
- uses: mheap/github-action-required-labels@v3
29+
- uses: mheap/github-action-required-labels@5847eef68201219cf0a4643ea7be61e77837bbce # v5.4.1
3030
with:
3131
mode: exactly
3232
count: 0
@@ -41,7 +41,7 @@ jobs:
4141

4242
steps:
4343
-
44-
uses: actions/checkout@v3
44+
uses: actions/checkout@v4
4545
-
4646
name: Unit Tests
4747
run: make unit-tests-ci
@@ -61,7 +61,7 @@ jobs:
6161
runs-on: ubuntu-latest
6262
steps:
6363
-
64-
uses: actions/checkout@v3
64+
uses: actions/checkout@v4
6565
-
6666
uses: pnpm/action-setup@v4
6767
-

.github/workflows/set-backlog-fields.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Generate token
1313
id: generate_token
14-
uses: tibdex/github-app-token@v1.7
14+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
1515
with:
1616
app_id: ${{ secrets.LFPROJECTBOARDAUTOMATION_APP_ID }}
1717
private_key: ${{ secrets.LFPROJECTBOARDAUTOMATION_PRIVATE_KEY }}

0 commit comments

Comments
 (0)