Skip to content

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

Fix validate-upgrade-path.yml

Carlos Monastyrski67e48d31d7c8
diff --git a/.github/workflows/validate-upgrade-path.yml b/.github/workflows/validate-upgrade-path.yml
index 4a6812297a..960eaf0226 100644
--- a/.github/workflows/validate-upgrade-path.yml
+++ b/.github/workflows/validate-upgrade-path.yml
@@ -68,7 +68,11 @@ jobs:
try:
print("Reading upgrade-path.yaml...")
with open('backend/upgrade-path.yaml', 'r') as file:
- content = file.read()
+ raw_lines = file.readlines()
+
+ # Remove comments and empty lines
+ content_lines = [line for line in raw_lines if not line.strip().startswith("#")]
+ content = "".join(content_lines)
if not content.strip():
raise ValueError("File is empty")