Skip to content

Commit 124979e

Browse files
committed
fix (dotnet-test): correct logger validation for consecutive semicolons
Ensures string comparison is used when checking for consecutive semicolons in logger input. Prevents false negatives caused by regex matching.
1 parent 2500706 commit 124979e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dotnet-test/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ runs:
200200
echo "::debug::Validating logger input: ${{ inputs.logger }}"
201201
202202
# Basic validation for common mistakes (e.g., unbalanced semicolons)
203-
if [[ "${{ inputs.logger }}" =~ ;; ]]; then
203+
if [[ "${{ inputs.logger }}" =~ ";;" ]]; then
204204
echo "::error::Logger configuration contains consecutive semicolons: ${{ inputs.logger }}"
205205
exit 1
206206
fi

0 commit comments

Comments
 (0)