Commit b4af0eafe0 for openssl.org
commit b4af0eafe01790c11f4191852f3995625a478d9e
Author: Georgy Karataev <georgyk@openssl.org>
Date: Fri Jul 24 13:27:36 2026 +0200
ci: accept uppercase hex in dispatch head_sha validation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Reviewed-by: Milan Broz <mbroz@openssl.org>
Reviewed-by: Norbert Pocs <norbertp@openssl.org>
MergeDate: Mon Jul 27 10:17:00 2026
(Merged from https://github.com/openssl/openssl/pull/32053)
diff --git a/.github/workflows/validate-dispatch-inputs.yml b/.github/workflows/validate-dispatch-inputs.yml
index a9e7f10ae4..54c6b5eb93 100644
--- a/.github/workflows/validate-dispatch-inputs.yml
+++ b/.github/workflows/validate-dispatch-inputs.yml
@@ -34,4 +34,4 @@ jobs:
run: |
[[ "$PR" =~ ^[1-9][0-9]*$ ]] || { echo "::error::pr must be a positive integer"; exit 1; }
[[ "$CHECK_RUN_ID" =~ ^[1-9][0-9]*$ ]] || { echo "::error::check_run_id must be a positive integer"; exit 1; }
- [[ "$HEAD_SHA" =~ ^[0-9a-f]{40}$ ]] || { echo "::error::head_sha must be a 40-character lowercase hex commit SHA"; exit 1; }
+ [[ "$HEAD_SHA" =~ ^[0-9a-fA-F]{40}$ ]] || { echo "::error::head_sha must be a 40-character hex commit SHA"; exit 1; }