fix: potential vulnerabilities in CI

This commit is contained in:
Junyan Qin
2024-12-27 22:54:48 +08:00
parent 9486312737
commit fd30022065
3 changed files with 8 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: judge has env GITHUB_REF # 如果没有GITHUB_REF环境变量则把github.ref变量赋值给GITHUB_REF
run: |
if [ -z "$GITHUB_REF" ]; then