Skip to content

Commit

Permalink
fix: potential vulnerabilities in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Dec 27, 2024
1 parent 9486312 commit fd30022
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build-dev-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Generate Tag
id: generate_tag
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-release-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Check version
id: check_version
Expand Down

0 comments on commit fd30022

Please sign in to comment.