Skip to content

Commit 0abe6ce

Browse files
ci: Update Node.js versions and action dependencies for Node 24 compa… (#96)
* ci: Update Node.js versions and action dependencies for Node 24 compatibility GitHub Actions runners are deprecating Node 20 in favor of Node 24. This updates application Node.js versions to 24.x and bumps third-party actions to versions that support the Node 24 runtime. Third-party actions are pinned to commit SHAs for supply chain security. * ci: Pin Atlassian gajira actions to SHAs and fix deprecated set-output usage Pin all atlassian/gajira-* actions from @master to v3 commit SHAs. Replace broken stdout echo and deprecated ::set-output with $GITHUB_OUTPUT in Jira integration workflows.
1 parent e1ce55a commit 0abe6ce

10 files changed

Lines changed: 28 additions & 26 deletions

.github/workflows/android-kit-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
repository: ${{ github.event.pull_request.head.repo.full_name }}
3535
ref: main
3636
- name: "Import GPG Key"
37-
uses: crazy-max/ghaction-import-gpg@v5
37+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
3838
with:
3939
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
4040
passphrase: ${{ secrets.GPG_PASSPHRASE }}

.github/workflows/data-plan-fetch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
uses: actions/checkout@v4
3636

3737
- name: Use Node.js
38-
uses: actions/setup-node@v1
38+
uses: actions/setup-node@v4
3939
with:
40-
node-version: '16.x'
40+
node-version: '24.x'
4141

4242
- name: Install mP CLI
4343
run: npm install -g @mparticle/cli

.github/workflows/dependabot-automerge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
echo ${{ github.event.workflow_run.event }}
2424
- name: 'Download artifact'
25-
uses: actions/github-script@v6
25+
uses: actions/github-script@v7
2626
with:
2727
script: |
2828
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
@@ -43,7 +43,7 @@ jobs:
4343
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data));
4444
- run: unzip pr.zip
4545
- name: 'Automerge PR'
46-
uses: actions/github-script@v6
46+
uses: actions/github-script@v7
4747
with:
4848
github-token: ${{ secrets.GITHUB_TOKEN }}
4949
script: |

.github/workflows/dependabot-rebase-development.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
ref: development
2121
fetch-depth: 0
2222
- name: "Import GPG Key"
23-
uses: crazy-max/ghaction-import-gpg@v5
23+
uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0
2424
with:
2525
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
2626
passphrase: ${{ secrets.GPG_PASSPHRASE }}

.github/workflows/issue-comment-from-jira.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
2626
steps:
2727
- name: Login
28-
uses: atlassian/gajira-login@master
28+
uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3
2929

3030
- name: Get Jira Ticket Links
31-
uses: fjogeleit/http-request-action@v1.11.0
31+
uses: fjogeleit/http-request-action@551353b829c3646756b2ec2b3694f819d7957495 # v2.0.0
3232
id: get_links
3333
with:
3434
url: ${{ env.JIRA_BASE_URL }}/rest/api/2/issue/${{ github.event.inputs.jira_ticket }}/remotelink
@@ -41,10 +41,11 @@ jobs:
4141

4242
- name: Parse URL from List
4343
id: parse_url
44-
run: |
45-
echo issue_url=`echo '${{ steps.get_links.outputs.response }}' | jq '.[]|select(.object.title | startswith("Github Issue Link:")).object.url'`
44+
run: |
45+
issue_url=$(echo '${{ steps.get_links.outputs.response }}' | jq -r '.[] | select(.object.title | startswith("Github Issue Link:")).object.url')
46+
echo "issue_url=$issue_url" >> "$GITHUB_OUTPUT"
4647
47-
- uses: mad9000/actions-find-and-replace-string@2
48+
- uses: mad9000/actions-find-and-replace-string@bf97a127285f67d542d3f06145424c64803ae81a # v2
4849
id: sub
4950
with:
5051
source: '${{ steps.parse_url.outputs.issue_url }}'

.github/workflows/issue-comment-to-jira.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: "Login"
22-
uses: atlassian/gajira-login@master
22+
uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3
2323

2424
- name: "Get Issue"
2525
id: get
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Find in commit messages
3434
id: find
35-
uses: atlassian/gajira-find-issue-key@master
35+
uses: atlassian/gajira-find-issue-key@7d9cbdfce900a0fcf608050ce728620a928be8b6 # v3
3636
with:
3737
string: ${{ steps.get.outputs.issue-labels }}
3838

@@ -42,7 +42,7 @@ jobs:
4242
echo "${{ github.event.issue }}"
4343
4444
- name: "Create comment"
45-
uses: atlassian/gajira-comment@master
45+
uses: atlassian/gajira-comment@76589d6b6d0b94b1ca6b01171c01a6affb5d6701 # v3
4646
with:
4747
issue: ${{ steps.find.outputs.issue }}
4848
comment: ${{ github.event.comment.body }}

.github/workflows/issue-status-update-from-jira.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
3838
steps:
3939
- name: Login
40-
uses: atlassian/gajira-login@master
40+
uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3
4141

4242
- name: Get Jira Ticket Links
43-
uses: fjogeleit/http-request-action@v1.11.0
43+
uses: fjogeleit/http-request-action@551353b829c3646756b2ec2b3694f819d7957495 # v2.0.0
4444
id: get_links
4545
with:
4646
url: ${{ env.JIRA_BASE_URL }}/rest/api/2/issue/${{ github.event.inputs.jira_ticket }}/remotelink
@@ -53,10 +53,11 @@ jobs:
5353

5454
- name: Parse URL from List
5555
id: parse_url
56-
run: |
57-
echo ::set-output name=issue_url::`echo '${{ steps.get_links.outputs.response }}' | jq '.[]|select(.object.title | startswith("Github Issue Link:")).object.url'`
56+
run: |
57+
issue_url=$(echo '${{ steps.get_links.outputs.response }}' | jq -r '.[] | select(.object.title | startswith("Github Issue Link:")).object.url')
58+
echo "issue_url=${issue_url}" >> "$GITHUB_OUTPUT"
5859
59-
- uses: mad9000/actions-find-and-replace-string@2
60+
- uses: mad9000/actions-find-and-replace-string@bf97a127285f67d542d3f06145424c64803ae81a # v2
6061
id: sub
6162
with:
6263
source: '${{ steps.parse_url.outputs.issue_url }}'

.github/workflows/issue-to-jira-ticket.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
steps:
1717

1818
- name: "Login"
19-
uses: atlassian/gajira-login@master
19+
uses: atlassian/gajira-login@ca13f8850ea309cf44a6e4e0c49d9aa48ac3ca4c # v3
2020

2121
- name: "Create"
2222
id: create
23-
uses: atlassian/gajira-create@master
23+
uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec # v3
2424
with:
2525
project: "SQDSDKS"
2626
issuetype: "Story"
@@ -31,7 +31,7 @@ jobs:
3131
fields: '{"parent": { "key": "SQDSDKS-4555" }}'
3232

3333
- name: "Create First Comment"
34-
uses: atlassian/gajira-comment@master
34+
uses: atlassian/gajira-comment@76589d6b6d0b94b1ca6b01171c01a6affb5d6701 # v3
3535
with:
3636
issue: ${{ steps.create.outputs.issue }}
3737
comment: "GitHub Issue: ${{ github.event.issue.html_url }}"

.github/workflows/web-kit-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: NPM install
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20.x
17+
node-version: 24.x
1818

1919
- name: Run NPM CI
2020
run: npm ci

.github/workflows/web-run-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ jobs:
2929
ref: ${{ inputs.branch_name }}
3030

3131
- name: NPM install
32-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
3333
with:
34-
node-version: 16.x
34+
node-version: 24.x
3535

3636
- name: Run NPM CI
3737
run: npm ci
@@ -40,7 +40,7 @@ jobs:
4040
run: ${{ inputs.build_command }}
4141

4242
- name: Install Firefox Latest
43-
uses: browser-actions/setup-firefox@latest
43+
uses: browser-actions/setup-firefox@fcf821c621167805dd63a29662bd7cb5676c81a8 # v1.7.1
4444

4545
- name: Log Firefox Version
4646
run: firefox --version

0 commit comments

Comments
 (0)