Skip to content

Commit 5a1eed8

Browse files
committed
m
1 parent e614f88 commit 5a1eed8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker-image-scanner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,13 @@ def main():
115115
)
116116

117117
# If secrets are found and FAIL_ON_SECRETS_FOUND is true, exit with error
118-
print(f"FAIL_ON_SECRETS_FOUND: {FAIL_ON_SECRETS_FOUND}")
118+
print("Secrets found in image! 🚨")
119119
sys.exit(1 if FAIL_ON_SECRETS_FOUND else 0)
120120
else:
121121
print("No secrets found in image! 🚀")
122122
sys.exit(0)
123123

124124

125125
if __name__ == "__main__":
126+
print(f"Should fail on secrets found? {FAIL_ON_SECRETS_FOUND}")
126127
main()

0 commit comments

Comments
 (0)