From 04653366b23c06545cfc3a5fa96b700bcf0d4c3a Mon Sep 17 00:00:00 2001 From: Chummy Date: Mon, 2 Mar 2026 16:10:42 +0800 Subject: [PATCH] ci: use system python on self-hosted runners --- .github/workflows/ci-change-audit.yml | 7 ++++--- .github/workflows/sec-audit.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-change-audit.yml b/.github/workflows/ci-change-audit.yml index 3fc87ce50..7db69e820 100644 --- a/.github/workflows/ci-change-audit.yml +++ b/.github/workflows/ci-change-audit.yml @@ -59,9 +59,10 @@ jobs: fetch-depth: 0 - name: Setup Python - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.12" + shell: bash + run: | + set -euo pipefail + python3 --version - name: Resolve base/head commits id: refs diff --git a/.github/workflows/sec-audit.yml b/.github/workflows/sec-audit.yml index 1d51a8f48..c1bb422f8 100644 --- a/.github/workflows/sec-audit.yml +++ b/.github/workflows/sec-audit.yml @@ -517,9 +517,10 @@ jobs: - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - name: Setup Python 3.11 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 - with: - python-version: "3.11" + shell: bash + run: | + set -euo pipefail + python3 --version - name: Enforce unsafe policy governance shell: bash