Skip to content

Commit f6a228d

Browse files
authored
chore: upgrade action runtime to Node 24 (#31)
* chore: upgrade action runtime to node24 * fix: use GITHUB_TOKEN for test commit statuses PUBLIC_REPO_ACCESS_TOKEN no longer exists, so the set_status jobs failed with 'Input required and not supplied: token' and every wait timed out. The default token with statuses: write can set commit statuses on this repo.
1 parent e4760a0 commit f6a228d

4 files changed

Lines changed: 17 additions & 5 deletions

File tree

.github/workflows/test-increased-wait-time.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: "The sha of the commit that triggered the workflow run"
1616
required: false
1717
type: "string"
18+
permissions:
19+
contents: read
20+
statuses: write
21+
1822
jobs:
1923
setup:
2024
runs-on: ubuntu-latest
@@ -46,7 +50,7 @@ jobs:
4650
with:
4751
repo: ${{ github.repository }}
4852
sha: ${{ github.sha }}
49-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
53+
token: ${{ secrets.GITHUB_TOKEN }}
5054
status: success
5155
context: continuous-delivery/${{ needs.setup.outputs.environment }}.test-app
5256

.github/workflows/test-positive.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: "The sha of the commit that triggered the workflow run"
1616
required: false
1717
type: "string"
18+
permissions:
19+
contents: read
20+
statuses: write
21+
1822
jobs:
1923
setup:
2024
runs-on: ubuntu-latest
@@ -47,7 +51,7 @@ jobs:
4751
with:
4852
repo: ${{ github.repository }}
4953
sha: ${{ github.sha }}
50-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
54+
token: ${{ secrets.GITHUB_TOKEN }}
5155
status: success
5256
context: continuous-delivery/${{ needs.setup.outputs.environment }}.test-app
5357

.github/workflows/test-wrong-status.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
description: "The sha of the commit that triggered the workflow run"
1616
required: false
1717
type: "string"
18+
permissions:
19+
contents: read
20+
statuses: write
21+
1822
jobs:
1923
setup:
2024
runs-on: ubuntu-latest
@@ -47,7 +51,7 @@ jobs:
4751
with:
4852
repo: ${{ github.repository }}
4953
sha: ${{ github.sha }}
50-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
54+
token: ${{ secrets.GITHUB_TOKEN }}
5155
status: pending
5256
context: continuous-delivery/${{ needs.setup.outputs.environment }}.test-app
5357

@@ -90,6 +94,6 @@ jobs:
9094
with:
9195
repo: ${{ github.repository }}
9296
sha: ${{ github.sha }}
93-
token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
97+
token: ${{ secrets.GITHUB_TOKEN }}
9498
status: success
9599
context: continuous-delivery/${{ needs.setup.outputs.environment }}.test-app

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ inputs:
3131
description: "Commit status state wait for. Valid values 'success', 'error', 'failure', 'pending'"
3232
default: "success"
3333
runs:
34-
using: "node20"
34+
using: "node24"
3535
main: "index.js"
3636

0 commit comments

Comments
 (0)