diff --git a/package.json b/package.json index 8c7f924..5e433e8 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "tar": "^7.5.7" }, "devDependencies": { - "@actions/core": "^2.0.2", + "@actions/core": "^3.0.0", "@actions/github": "^9.0.0", "@biomejs/biome": "^2.3.14", "@octokit/rest": "^22.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 5c1f497..74ddda9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -13,8 +13,8 @@ importers: version: 7.5.7 devDependencies: '@actions/core': - specifier: ^2.0.2 - version: 2.0.2 + specifier: ^3.0.0 + version: 3.0.0 '@actions/github': specifier: ^9.0.0 version: 9.0.0 @@ -39,23 +39,23 @@ importers: packages: - '@actions/core@2.0.2': - resolution: {integrity: sha512-Ast1V7yHbGAhplAsuVlnb/5J8Mtr/Zl6byPPL+Qjq3lmfIgWF1ak1iYfF/079cRERiuTALTXkSuEUdZeDCfGtA==} + '@actions/core@3.0.0': + resolution: {integrity: sha512-zYt6cz+ivnTmiT/ksRVriMBOiuoUpDCJJlZ5KPl2/FRdvwU3f7MPh9qftvbkXJThragzUZieit2nyHUyw53Seg==} - '@actions/exec@2.0.0': - resolution: {integrity: sha512-k8ngrX2voJ/RIN6r9xB82NVqKpnMRtxDoiO+g3olkIUpQNqjArXrCQceduQZCQj3P3xm32pChRLqRrtXTlqhIw==} + '@actions/exec@3.0.0': + resolution: {integrity: sha512-6xH/puSoNBXb72VPlZVm7vQ+svQpFyA96qdDBvhB8eNZOE8LtPf9L4oAsfzK/crCL8YZ+19fKYVnM63Sl+Xzlw==} '@actions/github@9.0.0': resolution: {integrity: sha512-yJ0RoswsAaKcvkmpCE4XxBRiy/whH2SdTBHWzs0gi4wkqTDhXMChjSdqBz/F4AeiDlP28rQqL33iHb+kjAMX6w==} - '@actions/http-client@3.0.1': - resolution: {integrity: sha512-SbGS8c/vySbNO3kjFgSW77n83C4MQx/Yoe+b1hAdpuvfHxnkHzDq2pWljUpAA56Si1Gae/7zjeZsV0CYjmLo/w==} - '@actions/http-client@3.0.2': resolution: {integrity: sha512-JP38FYYpyqvUsz+Igqlc/JG6YO9PaKuvqjM3iGvaLqFnJ7TFmcLyy2IDrY0bI0qCQug8E9K+elv5ZNfw62ZJzA==} - '@actions/io@2.0.0': - resolution: {integrity: sha512-Jv33IN09XLO+0HS79aaODsvIRyduiF7NY/F6LYeK5oeUmrsz7aFdRphQjFoESF4jS7lMauDOttKALcpapVDIAg==} + '@actions/http-client@4.0.0': + resolution: {integrity: sha512-QuwPsgVMsD6qaPD57GLZi9sqzAZCtiJT8kVBCDpLtxhL5MydQ4gS+DrejtZZPdIYyB1e95uCK9Luyds7ybHI3g==} + + '@actions/io@3.0.2': + resolution: {integrity: sha512-nRBchcMM+QK1pdjO7/idu86rbJI5YHUKCvKs0KxnSYbVe3F51UfGxuZX4Qy/fWlp6l7gWFwIkrOzN+oUK03kfw==} '@ampproject/remapping@2.3.0': resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} @@ -285,10 +285,6 @@ packages: cpu: [x64] os: [win32] - '@fastify/busboy@2.1.1': - resolution: {integrity: sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==} - engines: {node: '>=14'} - '@isaacs/cliui@8.0.2': resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} engines: {node: '>=12'} @@ -847,10 +843,6 @@ packages: undici-types@7.16.0: resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==} - undici@5.29.0: - resolution: {integrity: sha512-raqeBD6NQK4SkWhQzeYKd1KmIG6dllBOTt55Rmkt4HtI9mwdWtJljnrXjAFUBLTSN67HWrOIZ3EPF4kjUw80Bg==} - engines: {node: '>=14.0'} - undici@6.23.0: resolution: {integrity: sha512-VfQPToRA5FZs/qJxLIinmU59u0r7LXqoJkCzinq3ckNJp3vKEh7jTWN589YQ5+aoAC/TGRLyJLCPKcLQbM8r9g==} engines: {node: '>=18.17'} @@ -955,14 +947,14 @@ packages: snapshots: - '@actions/core@2.0.2': + '@actions/core@3.0.0': dependencies: - '@actions/exec': 2.0.0 - '@actions/http-client': 3.0.1 + '@actions/exec': 3.0.0 + '@actions/http-client': 4.0.0 - '@actions/exec@2.0.0': + '@actions/exec@3.0.0': dependencies: - '@actions/io': 2.0.0 + '@actions/io': 3.0.2 '@actions/github@9.0.0': dependencies: @@ -974,17 +966,17 @@ snapshots: '@octokit/request-error': 7.1.0 undici: 6.23.0 - '@actions/http-client@3.0.1': - dependencies: - tunnel: 0.0.6 - undici: 5.29.0 - '@actions/http-client@3.0.2': dependencies: tunnel: 0.0.6 undici: 6.23.0 - '@actions/io@2.0.0': {} + '@actions/http-client@4.0.0': + dependencies: + tunnel: 0.0.6 + undici: 6.23.0 + + '@actions/io@3.0.2': {} '@ampproject/remapping@2.3.0': dependencies: @@ -1116,8 +1108,6 @@ snapshots: '@esbuild/win32-x64@0.25.5': optional: true - '@fastify/busboy@2.1.1': {} - '@isaacs/cliui@8.0.2': dependencies: string-width: 5.1.2 @@ -1670,10 +1660,6 @@ snapshots: undici-types@7.16.0: {} - undici@5.29.0: - dependencies: - '@fastify/busboy': 2.1.1 - undici@6.23.0: {} universal-user-agent@7.0.3: {} diff --git a/src/ghw_check_ota_pr.ts b/src/ghw_check_ota_pr.ts index fcc1d84..929cb91 100644 --- a/src/ghw_check_ota_pr.ts +++ b/src/ghw_check_ota_pr.ts @@ -1,6 +1,6 @@ import assert from "node:assert"; import {existsSync, mkdirSync, writeFileSync} from "node:fs"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_concat_cacerts.ts b/src/ghw_concat_cacerts.ts index 59eb7e5..bc88655 100644 --- a/src/ghw_concat_cacerts.ts +++ b/src/ghw_concat_cacerts.ts @@ -1,6 +1,6 @@ import {readdirSync, readFileSync, writeFileSync} from "node:fs"; import path from "node:path"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_create_autodl_release.ts b/src/ghw_create_autodl_release.ts index 4cdafbe..7e4aa09 100644 --- a/src/ghw_create_autodl_release.ts +++ b/src/ghw_create_autodl_release.ts @@ -1,4 +1,4 @@ -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; import {BASE_IMAGES_DIR, BASE_INDEX_MANIFEST_FILENAME, execute, PREV_IMAGES_DIR, PREV_INDEX_MANIFEST_FILENAME, readManifest} from "./common.js"; diff --git a/src/ghw_create_pr_to_default.ts b/src/ghw_create_pr_to_default.ts index 85b48a6..3a4954b 100644 --- a/src/ghw_create_pr_to_default.ts +++ b/src/ghw_create_pr_to_default.ts @@ -1,5 +1,5 @@ import assert from "node:assert"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_get_changed_ota_files.ts b/src/ghw_get_changed_ota_files.ts index b75b828..4bc4141 100644 --- a/src/ghw_get_changed_ota_files.ts +++ b/src/ghw_get_changed_ota_files.ts @@ -1,5 +1,5 @@ import assert from "node:assert"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_identify_stacks.ts b/src/ghw_identify_stacks.ts index 96e240b..7ec17a8 100644 --- a/src/ghw_identify_stacks.ts +++ b/src/ghw_identify_stacks.ts @@ -1,6 +1,6 @@ import {readFileSync, writeFileSync} from "node:fs"; import {join} from "node:path"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_overwrite_cache.ts b/src/ghw_overwrite_cache.ts index 91b0876..ef74368 100644 --- a/src/ghw_overwrite_cache.ts +++ b/src/ghw_overwrite_cache.ts @@ -1,5 +1,5 @@ import {existsSync, mkdirSync} from "node:fs"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_process_ota_files.ts b/src/ghw_process_ota_files.ts index ce18f09..5b213ed 100644 --- a/src/ghw_process_ota_files.ts +++ b/src/ghw_process_ota_files.ts @@ -1,7 +1,7 @@ import assert from "node:assert"; import {readFileSync, renameSync} from "node:fs"; import path from "node:path"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; import { diff --git a/src/ghw_report_ota_pr.ts b/src/ghw_report_ota_pr.ts index bc5b385..41feec7 100644 --- a/src/ghw_report_ota_pr.ts +++ b/src/ghw_report_ota_pr.ts @@ -1,6 +1,6 @@ import assert from "node:assert"; import {existsSync, readFileSync, writeFileSync} from "node:fs"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_reprocess_all_images.ts b/src/ghw_reprocess_all_images.ts index b16c15b..aa6a8de 100644 --- a/src/ghw_reprocess_all_images.ts +++ b/src/ghw_reprocess_all_images.ts @@ -1,6 +1,6 @@ import {existsSync, lstatSync, mkdirSync, readdirSync, readFileSync, renameSync, rmSync, writeFileSync} from "node:fs"; import path from "node:path"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; import { diff --git a/src/ghw_run_autodl.ts b/src/ghw_run_autodl.ts index 0132791..68ce9ee 100644 --- a/src/ghw_run_autodl.ts +++ b/src/ghw_run_autodl.ts @@ -1,5 +1,5 @@ import {existsSync, mkdirSync, rmSync} from "node:fs"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/src/ghw_update_manifests.ts b/src/ghw_update_manifests.ts index dedfc11..5457dfb 100644 --- a/src/ghw_update_manifests.ts +++ b/src/ghw_update_manifests.ts @@ -1,5 +1,5 @@ import assert from "node:assert"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; diff --git a/tests/ghw_check_ota_pr.test.ts b/tests/ghw_check_ota_pr.test.ts index ea073f9..b6e2e47 100644 --- a/tests/ghw_check_ota_pr.test.ts +++ b/tests/ghw_check_ota_pr.test.ts @@ -1,6 +1,6 @@ import {existsSync, readFileSync, rmSync, writeFileSync} from "node:fs"; import path from "node:path"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest"; diff --git a/tests/ghw_reprocess_all_images.test.ts b/tests/ghw_reprocess_all_images.test.ts index f9eda92..d7d5cfc 100644 --- a/tests/ghw_reprocess_all_images.test.ts +++ b/tests/ghw_reprocess_all_images.test.ts @@ -1,6 +1,6 @@ import {copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync} from "node:fs"; import path from "node:path"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest"; import * as common from "../src/common"; diff --git a/tests/ghw_update_manifests.test.ts b/tests/ghw_update_manifests.test.ts index 93fd2d3..44cd797 100644 --- a/tests/ghw_update_manifests.test.ts +++ b/tests/ghw_update_manifests.test.ts @@ -1,5 +1,5 @@ import {rmSync} from "node:fs"; -import type CoreApi from "@actions/core"; +import type * as CoreApi from "@actions/core"; import type {Context} from "@actions/github/lib/context"; import type {Octokit} from "@octokit/rest"; import {afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, type MockInstance, vi} from "vitest";