From 265fd09c3fb6663ffedf628de5fbcdbf46f82f5c Mon Sep 17 00:00:00 2001 From: FanouZeng-TT <18280587072@163.com> Date: Fri, 11 Sep 2026 13:07:46 +0800 Subject: [PATCH] ci: pin release workflow actions --- .github/workflows/release.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32f478c..2166edd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: pypi-publish: name: Upload release to PyPI runs-on: ubuntu-latest - environment: + environment: name: release url: https://pypi.org/p/ucp-sdk permissions: @@ -18,17 +18,19 @@ jobs: contents: read steps: - name: Checkout code - uses: actions/checkout@v5 + uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5 + with: + persist-credentials: false # Installs uv (and manages Python automatically) - name: Install uv - uses: astral-sh/setup-uv@v8.2.0 + uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 with: enable-cache: true - # 'uv build' automatically creates the sdist and wheel inz 'dist/' + # 'uv build' automatically creates the sdist and wheel in 'dist/' - name: Build package run: uv build - name: Publish to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1