From fca9f1270769e980c36067f7f5fd6c0aea615d35 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= <brousek@ics.muni.cz>
Date: Fri, 26 Apr 2024 22:06:52 +0200
Subject: [PATCH] fix: use sha256 in screenshot path

makes sure that the filename length
does not exceed 255 characters

closes #1
---
 nuclei-templates/saml-headless-all.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nuclei-templates/saml-headless-all.yaml b/nuclei-templates/saml-headless-all.yaml
index d770e41..adbd90f 100644
--- a/nuclei-templates/saml-headless-all.yaml
+++ b/nuclei-templates/saml-headless-all.yaml
@@ -8,7 +8,7 @@ variables:
   BEARER_TOKEN: "abcd...789"
   CONFORMANCE_IDP_BASE_URL: https://conformance-idp.maiv1.incubator.geant.org/
   SCREENSHOTS_DIR: ""
-  FILENAME: '{{date_time("%Y-%M-%D_%H-%m-%s")}}-{{replace_regex(BaseURL,"(\\W+)","_")}}'
+  FILENAME: '{{date_time("%Y-%M-%D_%H-%m-%s")}}-{{sha256(BaseURL)}}'
   TEST_CASES:
     - noSignature
     - invalidSignature
-- 
GitLab