chore(ci): update actions/checkout to v7 and enable unsafe PR checkout - #640
Conversation
Update GitHub Actions checkout action from v2 to v7 for latest features. Add allow-unsafe-pr-checkout option for PR workflow compatibility. 更新 GitHub Actions checkout 到 v7 版本,启用 unsafe PR checkout 选项以提升 PR 工作流兼容性。 Log: 更新 cppcheck CI 工作流配置 Influence: CI 工作流使用最新的 checkout action,提升 PR 检测稳定性。# 请为您的变更输入提交说明。以 '#' 开始的行将被忽略,而一个空的提交
deepin pr auto review★ 总体评分:40分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 diff --git a/.github/workflows/cppcheck.yml b/.github/workflows/cppcheck.yml
index e808a89b1..85544faee 100644
--- a/.github/workflows/cppcheck.yml
+++ b/.github/workflows/cppcheck.yml
@@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- run: export
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- allow-unsafe-pr-checkout: true
- uses: linuxdeepin/action-cppcheck@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }} |
|
@add-uos: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Update GitHub Actions checkout action from v2 to v7 for latest features. Add allow-unsafe-pr-checkout option for PR workflow compatibility.
更新 GitHub Actions checkout 到 v7 版本,启用 unsafe PR checkout 选项以提升 PR 工作流兼容性。
Log: 更新 cppcheck CI 工作流配置
Influence: CI 工作流使用最新的 checkout action,提升 PR 检测稳定性。# 请为您的变更输入提交说明。以 '#' 开始的行将被忽略,而一个空的提交
Summary by Sourcery
CI: