From 96033a981ac5b313beb970c08ed3c3cb4a963d75 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 00:15:45 +0000 Subject: [PATCH 1/2] Initial plan From cca43afa4597487aa49218009eaf9592b3ad3dea Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Mar 2026 00:22:41 +0000 Subject: [PATCH 2/2] fix lint: remove unused secretNamePattern variable Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- pkg/workflow/secrets_validation.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/workflow/secrets_validation.go b/pkg/workflow/secrets_validation.go index 5e9e3dbc83..50aee2ad6b 100644 --- a/pkg/workflow/secrets_validation.go +++ b/pkg/workflow/secrets_validation.go @@ -12,9 +12,6 @@ var secretsValidationLog = newValidationLogger("secrets") // This is the same pattern used in the github_token schema definition ($defs/github_token). var secretsExpressionPattern = regexp.MustCompile(`^\$\{\{\s*secrets\.[A-Za-z_][A-Za-z0-9_]*(\s*\|\|\s*secrets\.[A-Za-z_][A-Za-z0-9_]*)*\s*\}\}$`) -// secretNamePattern validates that a secret name follows environment variable naming conventions -var secretNamePattern = regexp.MustCompile(`^[A-Z][A-Z0-9_]*$`) - // validateSecretsExpression validates that a value is a proper GitHub Actions secrets expression. // Returns an error if the value is not in the format: ${{ secrets.NAME }} or ${{ secrets.NAME || secrets.NAME2 }} // Note: This function intentionally does not accept the secret key name as a parameter to prevent