Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

grep fix

x032205d0547c354af9
diff --git a/.github/workflows/check-non-re2-regex.yml b/.github/workflows/check-non-re2-regex.yml
index 4142e7a3a7..e847457188 100644
--- a/.github/workflows/check-non-re2-regex.yml
+++ b/.github/workflows/check-non-re2-regex.yml
@@ -27,7 +27,7 @@ jobs:
- name: Scan backend diff for non-RE2 regex
run: |
echo "Scanning added/modified lines in backend/ for raw regex literals..."
- grep '^\+' diff.txt | grep -v '^\+\+\+ ' | sed 's/^\+//' > added_lines.txt
+ grep '^+' diff.txt | grep -v '^+++' | sed 's/^\+//' > added_lines.txt
echo "--- Content of added_lines.txt ---"
cat added_lines.txt
@@ -70,4 +70,4 @@ jobs:
else
# No lines matched the raw_regex_pattern at all.
echo "✅ No raw regex literals found in added/modified backend lines."
- fi
\ No newline at end of file
+ fi