From 2a37f3f1c3b2562b3021725958f7961547d132c5 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 12 Jul 2025 13:42:56 +0200 Subject: [PATCH] fix: secrets can be used in jobs.*.if expressions --- act/schema/workflow_schema.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/act/schema/workflow_schema.json b/act/schema/workflow_schema.json index 5863715f..a0eb5ad2 100644 --- a/act/schema/workflow_schema.json +++ b/act/schema/workflow_schema.json @@ -1519,7 +1519,8 @@ "always(0,0)", "failure(0,MAX)", "cancelled(0,0)", - "success(0,MAX)" + "success(0,MAX)", + "secrets" ], "string": { "is-expression": true @@ -1535,7 +1536,8 @@ "always(0,0)", "failure(0,MAX)", "cancelled(0,0)", - "success(0,MAX)" + "success(0,MAX)", + "secrets" ], "one-of": ["null", "boolean", "number", "string", "sequence", "mapping"] }, @@ -1801,7 +1803,8 @@ "failure(0,0)", "cancelled(0,0)", "success(0,0)", - "hashFiles(1,255)" + "hashFiles(1,255)", + "secrets" ], "description": "Use the `if` conditional to prevent a step from running unless a condition is met. Any supported context and expression can be used to create a conditional. Expressions in an `if` conditional do not require the bracketed expression syntax. When you use expressions in an `if` conditional, you may omit the expression syntax because GitHub automatically evaluates the `if` conditional as an expression.", "string": { @@ -1824,7 +1827,8 @@ "failure(0,0)", "cancelled(0,0)", "success(0,0)", - "hashFiles(1,255)" + "hashFiles(1,255)", + "secrets" ], "one-of": ["null", "boolean", "number", "string", "sequence", "mapping"] },