From 9e471a9eccee617bbaa394b52735d785bb6a67aa Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Wed, 13 Nov 2024 16:42:57 +0800 Subject: [PATCH] Block links that require real person verification (#896) Signed-off-by: ZePan110 --- .github/workflows/pr-dockerfile-path-scan.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-dockerfile-path-scan.yaml b/.github/workflows/pr-dockerfile-path-scan.yaml index a5cad2f7f..5279eed71 100644 --- a/.github/workflows/pr-dockerfile-path-scan.yaml +++ b/.github/workflows/pr-dockerfile-path-scan.yaml @@ -186,7 +186,7 @@ jobs: for url_line in $url_lines; do url=$(echo "$url_line"|cut -d '(' -f2 | cut -d ')' -f1|sed 's/\.git$//') path=$(echo "$url_line"|cut -d':' -f1 | cut -d'/' -f2-) - if [[ "https://platform.openai.com/docs/api-reference/fine-tuning" == "$url" || "https://platform.openai.com/docs/api-reference/" == "$url" || "https://www.docker.com/get-started" == "$url" || "https://openai.com/index/whisper/" == "$url" || "https://platform.openai.com/docs/api-reference/chat/create" == "$url" ]]; then + if [[ "https://platform.openai.com/docs/api-reference/"* == "$url" || "https://www.docker.com/get-started" == "$url" || "https://openai.com/index/whisper/" == "$url" ]]; then echo "Link "$url" from ${{github.workspace}}/$path need to be verified by a real person." else response=$(curl -L -s -o /dev/null -w "%{http_code}" "$url")