From a7272b1141488e83f5572dd2be20eb4824ffac42 Mon Sep 17 00:00:00 2001 From: "cloudquery-ci[bot]" <271027272+cloudquery-ci[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 05:26:26 +0000 Subject: [PATCH 1/2] chore(main): release 5.0.3 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 13 +++++++++++++ README.md | 2 +- package.json | 2 +- 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 162da858..f8d32fdd 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "5.0.2" + ".": "5.0.3" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d011979..ef324efa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [5.0.3](https://github.com/cloudquery/setup-cloudquery/compare/v5.0.2...v5.0.3) (2026-05-01) + + +### Bug Fixes + +* **deps:** Update dependency @actions/core to v3.0.1 ([#897](https://github.com/cloudquery/setup-cloudquery/issues/897)) ([4c19dee](https://github.com/cloudquery/setup-cloudquery/commit/4c19deea463f6db4b60506d7085cf484fe8a5d09)) +* **deps:** Update dependency @types/node to v24.12.2 ([#898](https://github.com/cloudquery/setup-cloudquery/issues/898)) ([51a62a8](https://github.com/cloudquery/setup-cloudquery/commit/51a62a826d7d30398a4c3d5417bc97972cb4ee40)) +* **deps:** Update dependency ora to v9.4.0 ([#902](https://github.com/cloudquery/setup-cloudquery/issues/902)) ([aae7ed2](https://github.com/cloudquery/setup-cloudquery/commit/aae7ed29a39faeac6cfa858fe36be9bff0ea62e4)) +* **deps:** Update dependency prettier to v3.8.3 ([#899](https://github.com/cloudquery/setup-cloudquery/issues/899)) ([43b1b9c](https://github.com/cloudquery/setup-cloudquery/commit/43b1b9c6f183d77833d0d10ad40d849c5182e132)) +* **deps:** Update dependency typescript to v6.0.3 ([#900](https://github.com/cloudquery/setup-cloudquery/issues/900)) ([e893d12](https://github.com/cloudquery/setup-cloudquery/commit/e893d12e6c2820909ac9ceeb87034dd3bea94303)) +* **deps:** Update eslint packages ([#903](https://github.com/cloudquery/setup-cloudquery/issues/903)) ([80981cb](https://github.com/cloudquery/setup-cloudquery/commit/80981cb386401b3c3bf8ae2304572154985d2bcc)) +* **deps:** Update pnpm to v10.33.2 ([#901](https://github.com/cloudquery/setup-cloudquery/issues/901)) ([104db7a](https://github.com/cloudquery/setup-cloudquery/commit/104db7ace1e9247f1704bcff0df554fb3b29efda)) + ## [5.0.2](https://github.com/cloudquery/setup-cloudquery/compare/v5.0.1...v5.0.2) (2026-04-01) diff --git a/README.md b/README.md index 15a5f512..cec27709 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ jobs: role-to-assume: aws-region: - - uses: cloudquery/setup-cloudquery@b7f7ea62cfec9774ad44a0d9307d0f6c5573bcb6 # v5.0.2 # x-release-please-version + - uses: cloudquery/setup-cloudquery@b7f7ea62cfec9774ad44a0d9307d0f6c5573bcb6 # v5.0.3 # x-release-please-version name: Setup CloudQuery with: # Required. Must be a valid SemVer version diff --git a/package.json b/package.json index 5c3435d0..abf161a2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudquery/setup-cloudquery", - "version": "5.0.2", + "version": "5.0.3", "description": "Setup CloudQuery CLI in a GitHub action environment", "main": "dist/index.js", "type": "module", From ca29d16b14580a851a59d4640ae9a42165890870 Mon Sep 17 00:00:00 2001 From: "cloudquery-ci[bot]" <271027272+cloudquery-ci[bot]@users.noreply.github.com> Date: Fri, 1 May 2026 05:26:45 +0000 Subject: [PATCH 2/2] chore: Prepare dist --- dist/index.js | 80 +++++++++++++++++++++++++++++++++++---------------- 1 file changed, 56 insertions(+), 24 deletions(-) diff --git a/dist/index.js b/dist/index.js index fceb6062..050be12b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -36795,7 +36795,7 @@ __nccwpck_require__.d(__webpack_exports__, { ;// CONCATENATED MODULE: external "os" const external_os_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("os"); -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/utils.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/utils.js // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ /** @@ -36831,7 +36831,7 @@ function utils_toCommandProperties(annotationProperties) { }; } //# sourceMappingURL=utils.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/command.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/command.js /** @@ -36927,7 +36927,7 @@ function escapeProperty(s) { const external_crypto_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto"); // EXTERNAL MODULE: external "fs" var external_fs_ = __nccwpck_require__(9896); -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/file-command.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/file-command.js // For internal use, subject to change. // We use any as a valid input type /* eslint-disable @typescript-eslint/no-explicit-any */ @@ -37837,7 +37837,7 @@ class PersonalAccessTokenCredentialHandler { } } //# sourceMappingURL=auth.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/oidc-utils.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/oidc-utils.js var oidc_utils_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -37911,7 +37911,7 @@ class oidc_utils_OidcClient { } } //# sourceMappingURL=oidc-utils.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/summary.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/summary.js var summary_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -38192,7 +38192,7 @@ const _summary = new Summary(); const markdownSummary = (/* unused pure expression or super */ null && (_summary)); const summary = (/* unused pure expression or super */ null && (_summary)); //# sourceMappingURL=summary.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/path-utils.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/path-utils.js /** * toPosixPath converts the given path to the posix form. On Windows, \\ will be @@ -39356,7 +39356,7 @@ function getExecOutput(commandLine, args, options) { }); } //# sourceMappingURL=exec.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/platform.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/platform.js var platform_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -39421,7 +39421,7 @@ function getDetails() { }); } //# sourceMappingURL=platform.js.map -;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.0/node_modules/@actions/core/lib/core.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/@actions+core@3.0.1/node_modules/@actions/core/lib/core.js var core_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -52251,7 +52251,7 @@ function isInteractive({stream = process.stdout} = {}) { ); } -;// CONCATENATED MODULE: ./node_modules/.pnpm/stdin-discarder@0.3.1/node_modules/stdin-discarder/index.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/stdin-discarder@0.3.2/node_modules/stdin-discarder/index.js const ASCII_ETX_CODE = 0x03; // Ctrl+C @@ -52268,11 +52268,8 @@ class StdinDiscarder { const code = typeof chunk === 'string' ? chunk.codePointAt(0) : chunk[0]; if (code === ASCII_ETX_CODE) { - if (external_node_process_.listenerCount('SIGINT') > 0) { - external_node_process_.emit('SIGINT'); - } else { - external_node_process_.kill(external_node_process_.pid, 'SIGINT'); - } + // Always re-signal the process. Emitting `SIGINT` directly breaks normal Ctrl+C termination when libraries install listeners for cleanup. + external_node_process_.kill(external_node_process_.pid, 'SIGINT'); } }; @@ -52340,7 +52337,7 @@ const stdinDiscarder = new StdinDiscarder(); /* harmony default export */ const stdin_discarder = (Object.freeze(stdinDiscarder)); -;// CONCATENATED MODULE: ./node_modules/.pnpm/ora@9.3.0/node_modules/ora/index.js +;// CONCATENATED MODULE: ./node_modules/.pnpm/ora@9.4.0/node_modules/ora/index.js @@ -52360,6 +52357,8 @@ const SYNCHRONIZED_OUTPUT_DISABLE = '\u001B[?2026l'; // Global state for concurrent spinner detection const activeHooksPerStream = new Map(); // Stream → ora instance +const validColors = new Set(['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan', 'white', 'gray']); + class Ora { #linesToClear = 0; #frameIndex = -1; @@ -52373,7 +52372,7 @@ class Ora { #drainHandler; #deferRenderTimer; #isDiscardingStdin = false; - color; + #color; // Helper to execute writes while preventing hook recursion #internalWrite(fn) { @@ -52484,6 +52483,10 @@ class Ora { this.#options.isSilent = false; } + if (this.#options.interval !== undefined && !(Number.isInteger(this.#options.interval) && this.#options.interval > 0)) { + throw new Error('The `interval` option must be a positive integer'); + } + // Set *after* `this.#stream`. // Store original interval before spinner setter clears it const userInterval = this.#options.interval; @@ -52629,6 +52632,18 @@ class Ora { return count; } + get color() { + return this.#color; + } + + set color(value) { + if (value !== undefined && value !== false && !validColors.has(value)) { + throw new Error('The `color` option must be a valid color or `false` to disable'); + } + + this.#color = value; + } + get isEnabled() { return this.#options.isEnabled && !this.#options.isSilent; } @@ -52664,8 +52679,8 @@ class Ora { const {frames} = this.#spinner; let frame = frames[this.#frameIndex]; - if (this.color) { - frame = source[this.color](frame); + if (this.#color) { + frame = source[this.#color](frame); } const fullPrefixText = this.#getFullPrefixText(this.#options.prefixText, ' '); @@ -52949,9 +52964,14 @@ async function oraPromise(action, options) { throw new TypeError('Parameter `action` must be a Function or a Promise'); } - const {successText, failText} = typeof options === 'object' + const { + successText, + failText, + successSymbol, + failSymbol, + } = typeof options === 'object' ? options - : {successText: undefined, failText: undefined}; + : {}; const spinner = ora(options).start(); @@ -52959,15 +52979,27 @@ async function oraPromise(action, options) { const promise = actionIsFunction ? action(spinner) : action; const result = await promise; - spinner.succeed(successText === undefined + const text = successText === undefined ? undefined - : (typeof successText === 'string' ? successText : successText(result))); + : (typeof successText === 'string' ? successText : successText(result)); + + if (successSymbol === undefined) { + spinner.succeed(text); + } else { + spinner.stopAndPersist({symbol: successSymbol, text}); + } return result; } catch (error) { - spinner.fail(failText === undefined + const text = failText === undefined ? undefined - : (typeof failText === 'string' ? failText : failText(error))); + : (typeof failText === 'string' ? failText : failText(error)); + + if (failSymbol === undefined) { + spinner.fail(text); + } else { + spinner.stopAndPersist({symbol: failSymbol, text}); + } throw error; }