Skip to content

Commit 07a841b

Browse files
authored
chore: Updated GitHub Actions versions (#2272)
1 parent 4c2f24c commit 07a841b

12 files changed

+51
-51
lines changed

.github/workflows/ci-workflow.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 2
26-
- uses: dorny/paths-filter@v3
26+
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
2727
id: filter
2828
with:
2929
filters: |
@@ -53,9 +53,9 @@ jobs:
5353
node-version: [lts/*]
5454

5555
steps:
56-
- uses: actions/checkout@v3
56+
- uses: actions/checkout@v4
5757
- name: Use Node.js ${{ matrix.node-version }}
58-
uses: actions/setup-node@v3
58+
uses: actions/setup-node@v4
5959
with:
6060
node-version: ${{ matrix.node-version }}
6161
- name: Install Dependencies
@@ -77,9 +77,9 @@ jobs:
7777
node-version: [lts/*]
7878

7979
steps:
80-
- uses: actions/checkout@v3
80+
- uses: actions/checkout@v4
8181
- name: Use Node.js ${{ matrix.node-version }}
82-
uses: actions/setup-node@v3
82+
uses: actions/setup-node@v4
8383
with:
8484
node-version: ${{ matrix.node-version }}
8585
- name: Install Dependencies
@@ -101,17 +101,17 @@ jobs:
101101
node-version: [16.x, 18.x, 20.x]
102102

103103
steps:
104-
- uses: actions/checkout@v3
104+
- uses: actions/checkout@v4
105105
- name: Use Node.js ${{ matrix.node-version }}
106-
uses: actions/setup-node@v3
106+
uses: actions/setup-node@v4
107107
with:
108108
node-version: ${{ matrix.node-version }}
109109
- name: Install Dependencies
110110
run: npm install
111111
- name: Run Unit Tests
112112
run: npm run unit
113113
- name: Archive Unit Test Coverage
114-
uses: actions/upload-artifact@v3
114+
uses: actions/upload-artifact@v4
115115
with:
116116
name: unit-tests-${{ matrix.node-version }}
117117
path: ./coverage/unit/lcov.info
@@ -133,9 +133,9 @@ jobs:
133133
node-version: [16.x, 18.x, 20.x]
134134

135135
steps:
136-
- uses: actions/checkout@v3
136+
- uses: actions/checkout@v4
137137
- name: Use Node.js ${{ matrix.node-version }}
138-
uses: actions/setup-node@v3
138+
uses: actions/setup-node@v4
139139
with:
140140
node-version: ${{ matrix.node-version }}
141141
- name: Install Dependencies
@@ -145,14 +145,14 @@ jobs:
145145
- name: Run ESM Integration Tests
146146
run: npm run integration:esm
147147
- name: Archive Integration Test Coverage
148-
uses: actions/upload-artifact@v3
148+
uses: actions/upload-artifact@v4
149149
with:
150-
name: integration-tests-${{ matrix.node-version }}
150+
name: integration-tests-cjs-${{ matrix.node-version }}
151151
path: ./coverage/integration/lcov.info
152152
- name: Archive Integration (ESM) Test Coverage
153-
uses: actions/upload-artifact@v3
153+
uses: actions/upload-artifact@v4
154154
with:
155-
name: integration-tests-${{ matrix.node-version }}
155+
name: integration-tests-esm-${{ matrix.node-version }}
156156
path: ./coverage/integration-esm/lcov.info
157157

158158
versioned-internal:
@@ -169,9 +169,9 @@ jobs:
169169
node-version: [16.x, 18.x, 20.x]
170170

171171
steps:
172-
- uses: actions/checkout@v3
172+
- uses: actions/checkout@v4
173173
- name: Use Node.js ${{ matrix.node-version }}
174-
uses: actions/setup-node@v3
174+
uses: actions/setup-node@v4
175175
with:
176176
node-version: ${{ matrix.node-version }}
177177
- name: Install Dependencies
@@ -186,21 +186,21 @@ jobs:
186186
JOBS: ${{ github.ref == 'refs/heads/main' && vars.NR_RUNNER && 16 || 4 }}
187187
C8_REPORTER: lcovonly
188188
- name: Archive Versioned Test Coverage
189-
uses: actions/upload-artifact@v3
189+
uses: actions/upload-artifact@v4
190190
with:
191191
name: versioned-tests-${{ matrix.node-version }}
192192
path: ./coverage/versioned/lcov.info
193193
- name: Collect docker logs on failure
194194
if: failure()
195-
uses: jwalton/gh-docker-logs@v2
195+
uses: jwalton/gh-docker-logs@2741064ab9d7af54b0b1ffb6076cf64c16f0220e
196196
with:
197197
dest: ./logs-${{ matrix.node-version }}
198198
- name: Tar logs
199199
if: failure()
200200
run: tar cvzf ./logs-${{ matrix.node-version }}.tgz ./logs-${{ matrix.node-version }}
201201
- name: Upload logs to GitHub
202202
if: failure()
203-
uses: actions/upload-artifact@master
203+
uses: actions/upload-artifact@v4
204204
with:
205205
name: logs-${{ matrix.node-version }}.tgz
206206
path: ./logs-${{ matrix.node-version }}.tgz
@@ -220,9 +220,9 @@ jobs:
220220
node-version: [16.x, 18.x, 20.x]
221221

222222
steps:
223-
- uses: actions/checkout@v3
223+
- uses: actions/checkout@v4
224224
- name: Use Node.js ${{ matrix.node-version }}
225-
uses: actions/setup-node@v3
225+
uses: actions/setup-node@v4
226226
with:
227227
node-version: ${{ matrix.node-version }}
228228
- name: Install Dependencies
@@ -243,23 +243,23 @@ jobs:
243243
node-version: [16.x, 18.x, 20.x]
244244

245245
steps:
246-
- uses: actions/checkout@v3
246+
- uses: actions/checkout@v4
247247
- name: Download artifacts
248-
uses: actions/download-artifact@v3
248+
uses: actions/download-artifact@v4
249249
- name: Post Unit Test Coverage
250-
uses: codecov/codecov-action@v3
250+
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
251251
with:
252252
token: ${{ secrets.CODECOV_TOKEN }}
253253
directory: unit-tests-${{ matrix.node-version }}
254254
flags: unit-tests-${{ matrix.node-version }}
255255
- name: Post Integration Test Coverage
256-
uses: codecov/codecov-action@v3
256+
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
257257
with:
258258
token: ${{ secrets.CODECOV_TOKEN }}
259259
directory: integration-tests-${{ matrix.node-version }}
260260
flags: integration-tests-${{ matrix.node-version }}
261261
- name: Post Versioned Test Coverage
262-
uses: codecov/codecov-action@v3
262+
uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c
263263
with:
264264
token: ${{ secrets.CODECOV_TOKEN }}
265265
directory: versioned-tests-${{ matrix.node-version }}

.github/workflows/notify-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
checking-pending-prs:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- name: Use Node.js ${{ matrix.node-version }}
14-
uses: actions/setup-node@v3
14+
uses: actions/setup-node@v4
1515
with:
1616
node-version: lts/*
1717
- name: Install Dependencies

.github/workflows/post-release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
node-version: [lts/*]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
with:
2323
# The script `publish-docs` below needs to perform a merge, so
2424
# it needs the full history to perform this merge.
2525
fetch-depth: 0
2626
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
27+
uses: actions/setup-node@v4
2828
with:
2929
node-version: ${{ matrix.node-version }}
3030
- name: Install Dependencies

.github/workflows/prep-release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ jobs:
2727

2828
steps:
2929
# Check out caller repo
30-
- uses: actions/checkout@v3
30+
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333
# check out agent repo to agent-repo for the bin folders
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
with:
3636
repository: newrelic/node-newrelic
3737
path: agent-repo
3838
- name: Use Node.js ${{ matrix.node-version }}
39-
uses: actions/setup-node@v3
39+
uses: actions/setup-node@v4
4040
with:
4141
node-version: ${{ matrix.node-version }}
4242
# Only need to install deps in agent-repo because of the bin scripts

.github/workflows/publish-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
node-version: [lts/*]
1313

1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v3 # https://github.com/actions/setup-node
17+
uses: actions/setup-node@v4 # https://github.com/actions/setup-node
1818
with:
1919
node-version: ${{ matrix.node-version }}
2020
registry-url: 'https://registry.npmjs.org'

.github/workflows/release-creation.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ jobs:
3535

3636
steps:
3737
# Check out caller repo
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
# check out agent repo to agent-repo for the bin folders
40-
- uses: actions/checkout@v3
40+
- uses: actions/checkout@v4
4141
with:
4242
repository: newrelic/node-newrelic
4343
path: agent-repo
4444
- name: Use Node.js ${{ matrix.node-version }}
45-
uses: actions/setup-node@v3
45+
uses: actions/setup-node@v4
4646
with:
4747
node-version: ${{ matrix.node-version }}
4848
registry-url: 'https://registry.npmjs.org'

.github/workflows/repolinter.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
steps:
1616
- name: Test Default Branch
1717
id: default-branch
18-
uses: actions/github-script@v6
18+
uses: actions/github-script@v7
1919
with:
2020
script: |
2121
const data = await github.rest.repos.get(context.repo)
2222
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
2323
- name: Checkout Self
2424
if: ${{ steps.default-branch.outputs.result == 'true' }}
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
- name: Run Repolinter
2727
if: ${{ steps.default-branch.outputs.result == 'true' }}
2828
uses: newrelic/repolinter-action@v1

.github/workflows/smoke-test-workflow.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
node-version: [16.x, 18.x, 20.x]
2020

2121
steps:
22-
- uses: actions/checkout@v3
22+
- uses: actions/checkout@v4
2323
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2525
with:
2626
node-version: ${{ matrix.node-version }}
2727
- name: Install Dependencies

.github/workflows/update-snyk-prs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: ${{ github.event.sender.login == 'snyk-bot' }}
1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Use Node.js LTS
18-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1919
with:
2020
node-version: lts/*
2121
- name: Install Dependencies

.github/workflows/validate-pr.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- name: Pull Request Title is Conventional
1919
id: lint_pr_title
20-
uses: amannn/action-semantic-pull-request@v5
20+
uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825
2121
with:
2222
# Recommended Prefixes from https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/README.md#type-enum
2323
types: |
@@ -37,7 +37,7 @@ jobs:
3737
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
- if: failure()
3939
name: Add PR comment if failed
40-
uses: marocchino/sticky-pull-request-comment@v2
40+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31
4141
with:
4242
header: pr-title-lint-error
4343
message: |
@@ -48,7 +48,7 @@ jobs:
4848
```
4949
- if: success()
5050
name: Remove PR comment if valid
51-
uses: marocchino/sticky-pull-request-comment@v2
51+
uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31
5252
with:
5353
header: pr-title-lint-error
5454
delete: true

.github/workflows/versioned-coverage.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
node-version: [16.x, 18.x, 20.x]
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- name: Use Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v4
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
- name: Install Dependencies

.github/workflows/versioned-security-agent.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ jobs:
6666
node-version: [16.x, 18.x, 20.x]
6767

6868
steps:
69-
- uses: actions/checkout@v3
69+
- uses: actions/checkout@v4
7070
- name: Use Node.js ${{ matrix.node-version }}
71-
uses: actions/setup-node@v3
71+
uses: actions/setup-node@v4
7272
with:
7373
node-version: ${{ matrix.node-version }}
7474
- name: Install Dependencies

0 commit comments

Comments
 (0)