diff --git a/src/download-artifact.ts b/src/download-artifact.ts
index 8ca8bb1..1dfef71 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.`
         )