From c6e5bba0e3b494d4a59d53025a3e2650ced9899d Mon Sep 17 00:00:00 2001 From: katsugtgz Date: Fri, 16 Oct 2026 19:01:16 +0700 Subject: [PATCH] ci: update action versions to current majors python.yml: actions/checkout v4 -> v7, actions/setup-python v5 -> v7 Codeql.yml: actions/checkout v4 -> v7, github/codeql-action v3 -> v4 --- .github/workflows/Codeql.yml | 8 ++++---- .github/workflows/python.yml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Codeql.yml b/.github/workflows/Codeql.yml index 8888ce47d41..f0a31820d22 100644 --- a/.github/workflows/Codeql.yml +++ b/.github/workflows/Codeql.yml @@ -19,24 +19,24 @@ jobs: steps: # 1. 检出代码 - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: fetch-depth: 0 # 2. 初始化 CodeQL - name: Initialize CodeQL - uses: github/codeql-action/init@v3 + uses: github/codeql-action/init@v4 with: languages: python # 不指定 queries,Action 会默认跑安全 + 质量查询 # 3. 自动构建 - name: Autobuild - uses: github/codeql-action/autobuild@v3 + uses: github/codeql-action/autobuild@v4 # 4. 执行分析 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v3 + uses: github/codeql-action/analyze@v4 with: # 不指定 queries,Action 会自动跑安全 + 质量规则 upload: true \ No newline at end of file diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a0fe5f85114..b91037ad10c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -19,10 +19,10 @@ jobs: python-version: ['3.10', '3.11', '3.12'] steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 + uses: actions/setup-python@v7 with: python-version: ${{ matrix.python-version }}