Skip to content

Commit 3e8157f

Browse files
committed
chore: upgrade GitHub Actions from Node 20 to Node 24
1 parent a543b48 commit 3e8157f

4 files changed

Lines changed: 101 additions & 101 deletions

File tree

Lines changed: 84 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
1-
name: CDN Deployment for AWS
2-
description: Deploys to AWS CDN and optionally invalidates the path in CloudFront
3-
inputs:
4-
artifact:
5-
description: Name of the artifact
6-
required: true
7-
invalidate_paths:
8-
description: paths that get invalidated in cloud front
9-
default: ''
10-
aws_account_id:
11-
description: The AWS account id
12-
required: true
13-
aws_distribution_id:
14-
description: The CloudFront description id
15-
required: true
16-
aws_bucket_name:
17-
description: The AWS bucket to sync
18-
required: true
19-
deploy_index_html:
20-
description: Deploy a simple index.html file to S3 root
21-
default: 'false'
22-
runs:
23-
using: 'composite'
24-
25-
steps:
26-
- name: Configure AWS credentials
27-
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
28-
with:
29-
aws-region: us-east-2
30-
role-to-assume: arn:aws:iam::${{ inputs.aws_account_id }}:role/github-runner-for-cdn
31-
32-
- name: Check Identity
33-
shell: bash
34-
run: aws sts get-caller-identity
35-
36-
- uses: actions/download-artifact@v4
37-
with:
38-
name: ${{ inputs.artifact }}
39-
path: ./download
40-
41-
- name: Deploy
42-
shell: bash
43-
run: aws s3 sync ./download s3://${{ inputs.aws_bucket_name }}
44-
45-
- name: Create and Deploy Index HTML
46-
if: ${{ inputs.deploy_index_html == 'true' }}
47-
shell: bash
48-
run: |
49-
echo '<!DOCTYPE html>
50-
<html lang="en">
51-
<head>
52-
<meta charset="UTF-8">
53-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
54-
<title>UID2/EUID SDK Files</title>
55-
<style>
56-
body { font-family: Arial, sans-serif; margin: 40px; }
57-
h1 { color: #333; }
58-
.file-list { margin: 20px 0; }
59-
.file-item { margin: 10px 0; padding: 10px; background: #f5f5f5; border-radius: 5px; }
60-
.file-link { text-decoration: none; color: #0066cc; font-weight: bold; }
61-
.file-link:hover { text-decoration: underline; }
62-
</style>
63-
</head>
64-
<body>
65-
<h1>UID2/EUID SDK Files</h1>
66-
<p>This directory contains the latest SDK files for UID2 and EUID integration.</p>
67-
<div class="file-list">
68-
<div class="file-item">
69-
<strong>SDK Files:</strong> Available in this directory
70-
</div>
71-
<div class="file-item">
72-
<strong>Documentation:</strong> <a href="https://unifiedid.com/docs/guides/summary-guides" target="_blank" class="file-link">Visit Documentation</a>
73-
</div>
74-
</div>
75-
</body>
76-
</html>' > index.html
77-
aws s3 cp index.html s3://${{ inputs.aws_bucket_name }}/index.html
78-
79-
- name: Invalidate CloudFront
80-
uses: chetan/invalidate-cloudfront-action@cacab256f2bd90d1c04447a7d6afdaf6f346e7b3 # v2
81-
env:
82-
DISTRIBUTION: ${{ inputs.aws_distribution_id }}
83-
PATHS: ${{ inputs.invalidate_paths }}
84-
AWS_REGION: us-east-2
1+
name: CDN Deployment for AWS
2+
description: Deploys to AWS CDN and optionally invalidates the path in CloudFront
3+
inputs:
4+
artifact:
5+
description: Name of the artifact
6+
required: true
7+
invalidate_paths:
8+
description: paths that get invalidated in cloud front
9+
default: ''
10+
aws_account_id:
11+
description: The AWS account id
12+
required: true
13+
aws_distribution_id:
14+
description: The CloudFront description id
15+
required: true
16+
aws_bucket_name:
17+
description: The AWS bucket to sync
18+
required: true
19+
deploy_index_html:
20+
description: Deploy a simple index.html file to S3 root
21+
default: 'false'
22+
runs:
23+
using: 'composite'
24+
25+
steps:
26+
- name: Configure AWS credentials
27+
uses: aws-actions/configure-aws-credentials@e7f100cf4c008499ea8adda475de1042d6975c7b # v6.2.0
28+
with:
29+
aws-region: us-east-2
30+
role-to-assume: arn:aws:iam::${{ inputs.aws_account_id }}:role/github-runner-for-cdn
31+
32+
- name: Check Identity
33+
shell: bash
34+
run: aws sts get-caller-identity
35+
36+
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
37+
with:
38+
name: ${{ inputs.artifact }}
39+
path: ./download
40+
41+
- name: Deploy
42+
shell: bash
43+
run: aws s3 sync ./download s3://${{ inputs.aws_bucket_name }}
44+
45+
- name: Create and Deploy Index HTML
46+
if: ${{ inputs.deploy_index_html == 'true' }}
47+
shell: bash
48+
run: |
49+
echo '<!DOCTYPE html>
50+
<html lang="en">
51+
<head>
52+
<meta charset="UTF-8">
53+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
54+
<title>UID2/EUID SDK Files</title>
55+
<style>
56+
body { font-family: Arial, sans-serif; margin: 40px; }
57+
h1 { color: #333; }
58+
.file-list { margin: 20px 0; }
59+
.file-item { margin: 10px 0; padding: 10px; background: #f5f5f5; border-radius: 5px; }
60+
.file-link { text-decoration: none; color: #0066cc; font-weight: bold; }
61+
.file-link:hover { text-decoration: underline; }
62+
</style>
63+
</head>
64+
<body>
65+
<h1>UID2/EUID SDK Files</h1>
66+
<p>This directory contains the latest SDK files for UID2 and EUID integration.</p>
67+
<div class="file-list">
68+
<div class="file-item">
69+
<strong>SDK Files:</strong> Available in this directory
70+
</div>
71+
<div class="file-item">
72+
<strong>Documentation:</strong> <a href="https://unifiedid.com/docs/guides/summary-guides" target="_blank" class="file-link">Visit Documentation</a>
73+
</div>
74+
</div>
75+
</body>
76+
</html>' > index.html
77+
aws s3 cp index.html s3://${{ inputs.aws_bucket_name }}/index.html
78+
79+
- name: Invalidate CloudFront
80+
uses: chetan/invalidate-cloudfront-action@cacab256f2bd90d1c04447a7d6afdaf6f346e7b3 # v2
81+
env:
82+
DISTRIBUTION: ${{ inputs.aws_distribution_id }}
83+
PATHS: ${{ inputs.invalidate_paths }}
84+
AWS_REGION: us-east-2

.github/workflows/build-sdk-package.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ jobs:
3030
node-version: [20.x]
3131
target: [development, production]
3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3434
with:
3535
ref: ${{ needs.incrementVersionNumber.outputs.git_tag_or_hash }}
3636
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v4
37+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3838
with:
3939
node-version: ${{ matrix.node-version }}
4040
- name: Get Package Version
@@ -51,14 +51,14 @@ jobs:
5151

5252
# Upload SDK artifacts for CDN
5353
- name: Upload UID2 SDK artifact
54-
uses: actions/upload-artifact@v4
54+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5555
with:
5656
name: uid2SDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
5757
path: ./dist/uid2-sdk-${{ steps.version.outputs.package_version }}.js
5858
retention-days: 30
5959

6060
- name: Upload EUID SDK artifact
61-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6262
with:
6363
name: euidSDK-${{ matrix.target }}-${{ steps.version.outputs.package_version }}
6464
path: ./dist/euid-sdk-${{ steps.version.outputs.package_version }}.js
@@ -67,15 +67,15 @@ jobs:
6767
# Upload NPM package artifacts
6868
- name: Upload UID2 NPM package
6969
if: matrix.target == 'production'
70-
uses: actions/upload-artifact@v4
70+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7171
with:
7272
name: uid2-npm-package-${{ steps.version.outputs.package_version }}
7373
path: ./dist/uid2-npm/
7474
retention-days: 30
7575

7676
- name: Upload EUID NPM package
7777
if: matrix.target == 'production'
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7979
with:
8080
name: euid-npm-package-${{ steps.version.outputs.package_version }}
8181
path: ./dist/euid-npm/
@@ -92,15 +92,15 @@ jobs:
9292
steps:
9393
- name: Build Changelog
9494
id: github_release_changelog
95-
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
95+
uses: mikepenz/release-changelog-builder-action@348e88fab4c37338b1e803ceb2d4a7a5db6c0833 # v6.2.2
9696
with:
9797
toTag: v${{ needs.incrementVersionNumber.outputs.new_version }}
9898
configurationJson: |
9999
{
100100
"pr_template": " - #{{TITLE}} - ( PR: ##{{NUMBER}} )"
101101
}
102102
- name: Create Release Notes
103-
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
103+
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
104104
with:
105105
name: v${{ needs.incrementVersionNumber.outputs.new_version }}
106106
body: ${{ steps.github_release_changelog.outputs.changelog }}

.github/workflows/build-secure-signal.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
uid2_modified: ${{ steps.verify_uid2.outputs.any_modified }}
1515
euid_modified: ${{ steps.verify_euid.outputs.any_modified }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
1818
- name: Check for change to src/secureSignalUid2.ts
1919
id: verify_uid2
20-
uses: tj-actions/changed-files@716b1e13042866565e00e85fd4ec490e186c4a2f # v41
20+
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
2121
with:
2222
files: src/secureSignalUid2.ts
2323
- name: Check for change to src/secureSignalEuid.ts
2424
id: verify_euid
25-
uses: tj-actions/changed-files@716b1e13042866565e00e85fd4ec490e186c4a2f # v41
25+
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
2626
with:
2727
files: src/secureSignalEuid.ts
2828

@@ -35,9 +35,9 @@ jobs:
3535
target: [development, production]
3636

3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
3939
- name: Use Node.js ${{ matrix.node-version }}
40-
uses: actions/setup-node@v4
40+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4141
with:
4242
node-version: ${{ matrix.node-version }}
4343
cache: 'npm'
@@ -49,15 +49,15 @@ jobs:
4949

5050
# Upload UID2 Secure Signals Files
5151
- name: Upload UID2 Secure Signals Files
52-
uses: actions/upload-artifact@v4
52+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5353
with:
5454
name: ${{ matrix.target }}Uid2SecureSignalScript
5555
path: ./dist/uid2SecureSignal.js
5656
retention-days: 30
5757

5858
# Upload EUID Secure Signals Files
5959
- name: Upload EUID Secure Signals Files
60-
uses: actions/upload-artifact@v4
60+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6161
with:
6262
name: ${{ matrix.target }}EuidSecureSignalScript
6363
path: ./dist/euidSecureSignal.js

.github/workflows/node.js.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
2222
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v4
23+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
2424
with:
2525
node-version: ${{ matrix.node-version }}
2626
cache: 'npm'

0 commit comments

Comments
 (0)