diff --git a/dist/index.js b/dist/index.js
index 17963f0..594cdff 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -118782,7 +118782,7 @@ function run() {
             for (let i = 0; i < results.length; i++) {
                 const outcome = results[i];
                 const artifactName = chunk[i].name;
-                if (!outcome.digestMismatch) {
+                if (outcome.digestMismatch) {
                     core.warning(`Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`);
                 }
             }
diff --git a/src/download-artifact.ts b/src/download-artifact.ts
index dda08c6..e149804 100644
--- a/src/download-artifact.ts
+++ b/src/download-artifact.ts
@@ -132,7 +132,7 @@ async function run(): Promise<void> {
       const outcome = results[i]
       const artifactName = chunk[i].name
 
-      if (!outcome.digestMismatch) {
+      if (outcome.digestMismatch) {
         core.warning(
           `Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`
         )