Skip to content

Commit cccbd70

Browse files
scottschreckengaustgithub-actions
and
github-actions
authored
fix: update actions with deprecation notice for node v16 (#389)
* actions/checkout * actions/upload-artifact * actions/setup-node * actions/setup-python * actions/download-artifact * codecov/codecov-actions --------- Signed-off-by: Scott Schreckengaust <[email protected]> Signed-off-by: github-actions <[email protected]> Co-authored-by: github-actions <[email protected]>
1 parent a46fc6b commit cccbd70

13 files changed

+79
-73
lines changed

.github/workflows/bandit.yml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build.yml

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/code-generation.yml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/commitlint.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/deploydocs.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ort-toolkit.yml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/release.yml

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/semgrep.yml

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/testdeployment.yml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/upgrade-main.yml

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

+16-10
Original file line numberDiff line numberDiff line change
@@ -136,16 +136,22 @@ if (workflowUpgradeMain) {
136136
}
137137

138138
// Add specific overrides https://projen.io/docs/integrations/github/#actions-versions
139-
project.github?.actions.set('actions/checkout@v3', 'actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744');
140-
project.github?.actions.set('actions/download-artifact@v3', 'actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a');
139+
project.github?.actions.set('actions/checkout@v3', 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11'); // https://github.com/projen/projen/issues/3529
140+
project.github?.actions.set('actions/checkout@v4', 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11');
141+
project.github?.actions.set('actions/download-artifact@v3', 'actions/download-artifact@b4aefff88e83a2676a730654e1ce3dce61880379'); // https://github.com/projen/projen/issues/3529
142+
project.github?.actions.set('actions/download-artifact@v4', 'actions/download-artifact@b4aefff88e83a2676a730654e1ce3dce61880379');
141143
project.github?.actions.set('actions/github-script@v6', 'actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410');
142-
project.github?.actions.set('actions/setup-node@v3', 'actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7');
143-
project.github?.actions.set('actions/setup-python@v4', 'actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236');
144+
project.github?.actions.set('actions/setup-node@v3', 'actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8'); // https://github.com/projen/projen/issues/3529
145+
project.github?.actions.set('actions/setup-node@v4', 'actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8');
146+
project.github?.actions.set('actions/setup-python@v4', 'actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d'); // https://github.com/projen/projen/issues/3529
147+
project.github?.actions.set('actions/setup-python@v5', 'actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d');
144148
project.github?.actions.set('actions/stale@v4', 'actions/stale@a20b814fb01b71def3bd6f56e7494d667ddf28da');
145-
project.github?.actions.set('actions/upload-artifact@v3', 'actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32');
149+
project.github?.actions.set('actions/upload-artifact@v3', 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34'); // https://github.com/projen/projen/issues/3529
150+
project.github?.actions.set('actions/upload-artifact@v4', 'actions/upload-artifact@18bf333cd2249fbbbdb605fd9d9ed57efd7adf34');
146151
project.github?.actions.set('amannn/[email protected]', 'amannn/action-semantic-pull-request@01d5fd8a8ebb9aafe902c40c53f0f4744f7381eb');
147152
project.github?.actions.set('aws-github-ops/github-merit-badger@main', 'aws-github-ops/github-merit-badger@70d1c47f7051d6e324d4ddc48d676ba61ef69a3e');
148-
project.github?.actions.set('codecov/codecov-action@v3', 'codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d');
153+
project.github?.actions.set('codecov/codecov-action@v3', 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed'); // https://github.com/projen/projen/issues/3529
154+
project.github?.actions.set('codecov/codecov-action@v4', 'codecov/codecov-action@84508663e988701840491b86de86b666e8a86bed');
149155
project.github?.actions.set('github/issue-metrics@v2', 'github/issue-metrics@6bc5254e72971dbb7462db077779f1643f772afd');
150156
project.github?.actions.set('hmarr/[email protected]', 'hmarr/auto-approve-action@f0939ea97e9205ef24d872e76833fa908a770363');
151157
project.github?.actions.set('minicli/[email protected]', 'minicli/action-contributors@20ec03af008cb51110a3137fbf77f59a4fd7ff5a');
@@ -175,9 +181,9 @@ if (deployDocsWorkflow) {
175181
},
176182
runsOn: ['ubuntu-latest'],
177183
steps: [
178-
{ uses: 'actions/checkout@v3' },
184+
{ uses: 'actions/checkout@v4' },
179185
{
180-
uses: 'actions/setup-node@v3',
186+
uses: 'actions/setup-node@v4',
181187
with: { 'node-version': '18' },
182188
},
183189
{ run: 'cd website; yarn install --frozen-lockfile;' },
@@ -211,8 +217,8 @@ if (testDeploymentWorkflow) {
211217
},
212218
runsOn: ['ubuntu-latest'],
213219
steps: [
214-
{ uses: 'actions/checkout@v3', with: { 'fetch-depth': '0' } },
215-
{ uses: 'actions/setup-node@v3', with: { 'node-version': '18', 'cache': 'yarn' } },
220+
{ uses: 'actions/checkout@v4', with: { 'fetch-depth': '0' } },
221+
{ uses: 'actions/setup-node@v4', with: { 'node-version': '18', 'cache': 'yarn' } },
216222
{ run: 'cd website; yarn install --frozen-lockfile' },
217223
{ run: 'cd website; pwd; npx docusaurus build', name: 'Test build website' },
218224
],

projenrc/github-jobs.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export function buildUpgradeMainPRCustomJob() {
2929
steps: [
3030
{
3131
name: 'Checkout',
32-
uses: 'actions/checkout@v3',
32+
uses: 'actions/checkout@v4',
3333
with: {
3434
ref: 'main',
3535
},
3636
},
3737
{
3838
name: 'Download patch',
39-
uses: 'actions/download-artifact@v3',
39+
uses: 'actions/download-artifact@v4',
4040
with: {
4141
name: '.repo.patch',
4242
path: '${{ runner.temp }}',

0 commit comments

Comments
 (0)