Skip to content

Commit

Permalink
fix: Enable persist-credentials to resolve authentication failure in …
Browse files Browse the repository at this point in the history
…GitHub Actions (#780)

* ci: 更新 GitHub Actions 工作流配置

- 修改了 actions/checkout@v4 步骤的 persist-credentials 参数
- 将 persist-credentials 参数从 false 修改为 true

* ci: 更新 GitHub Actions 工作流中的凭据配置

- 在 ci.yml 中将 persist-credentials 设置为 false,以提高安全性
- 在 run_data_sync.yml 中将 persist-credentials 设置为 true,以确保数据同步任务的正常运行
  • Loading branch information
viazure authored Feb 16, 2025
1 parent 1f7643b commit 181a506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run_data_sync.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run Data Sync
name: Run Data Sync

on:
workflow_dispatch:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
push:
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
persist-credentials: true

- name: Set up Python
id: setup_python
Expand Down

0 comments on commit 181a506

Please sign in to comment.