mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 09:08:43 +08:00
enhance: fix a security vulnerability (#36154)
Signed-off-by: Yellow Shine <sammy.huang@zilliz.com>
This commit is contained in:
parent
1d22de140a
commit
2694551757
6
.github/workflows/check-issue.yaml
vendored
6
.github/workflows/check-issue.yaml
vendored
@ -10,6 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TITLE_PASSED: "T"
|
TITLE_PASSED: "T"
|
||||||
|
ISSUE_TITLE: ${{ github.event.issue.title }}
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
@ -19,7 +20,8 @@ jobs:
|
|||||||
- name: Check Issue
|
- name: Check Issue
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo Issue title: ${{ github.event.issue.title }}
|
echo "Issue title: ${ISSUE_TITLE//\"/\\\"}"
|
||||||
|
|
||||||
cat >> check_title.py << EOF
|
cat >> check_title.py << EOF
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
@ -32,7 +34,7 @@ jobs:
|
|||||||
print("TITLE_PASSED=T")
|
print("TITLE_PASSED=T")
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
python3 check_title.py "${{ github.event.issue.title }}" >> "$GITHUB_ENV"
|
python3 check_title.py "${ISSUE_TITLE//\"/\\\"}" >> "$GITHUB_ENV"
|
||||||
cat $GITHUB_ENV
|
cat $GITHUB_ENV
|
||||||
|
|
||||||
- name: Check env
|
- name: Check env
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user