From 83e5e2517b6165112b02c4cb79deb6d0a57d79d9 Mon Sep 17 00:00:00 2001 From: Ryan Ghadimi <114221941+GhadimiR@users.noreply.github.com> Date: Wed, 5 Mar 2025 14:30:51 +0000 Subject: [PATCH] Change some debug -> info for artifacts hash logging --- packages/artifact/CONTRIBUTIONS.md | 1 + .../artifact/src/internal/download/download-artifact.ts | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/artifact/CONTRIBUTIONS.md b/packages/artifact/CONTRIBUTIONS.md index 23ede984..171b0151 100644 --- a/packages/artifact/CONTRIBUTIONS.md +++ b/packages/artifact/CONTRIBUTIONS.md @@ -41,3 +41,4 @@ Any easy way to test changes for the official upload/download actions is to fork 1. In the locally cloned fork, link to your local toolkit changes: `npm link @actions/artifact` 2. Then, compile your changes with: `npm run release`. The local `dist/index.js` should be updated with your changes. 3. Commit and push to your fork, you can then test with a `uses:` in your workflow pointed at your fork. + 4. The format for the above is `//@`, i.e. `me/myrepo/@HEAD` diff --git a/packages/artifact/src/internal/download/download-artifact.ts b/packages/artifact/src/internal/download/download-artifact.ts index 2b5e955b..40540890 100644 --- a/packages/artifact/src/internal/download/download-artifact.ts +++ b/packages/artifact/src/internal/download/download-artifact.ts @@ -109,7 +109,7 @@ export async function streamExtractExternal( if (hashStream) { hashStream.end() sha256Digest = hashStream.read() as string - core.debug( + core.info( `SHA256 digest of downloaded artifact zip is ${sha256Digest}` ) } @@ -229,8 +229,8 @@ export async function downloadArtifactInternal( if (options?.expectedHash) { if (options?.expectedHash !== extractResponse.sha256Digest) { digestMismatch = true - core.debug(`Computed digest: ${extractResponse.sha256Digest}`) - core.debug(`Expected digest: ${options.expectedHash}`) + core.info(`Computed digest: ${extractResponse.sha256Digest}`) + core.info(`Expected digest: ${options.expectedHash}`) } } } catch (error) {