From 406194e856cf2416c8c9c9c524cc0c0053e0bc7a Mon Sep 17 00:00:00 2001 From: jlzhou Date: Sat, 26 Oct 2024 06:43:24 +0800 Subject: [PATCH] chore(CI/CI): update workflow permission for private repo See: - - --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ca12355..18833d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,7 @@ jobs: permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing + contents: read # IMPORTANT: this permission is mandatory for private repositories steps: - uses: actions/checkout@v4 @@ -28,4 +29,3 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: verbose: true - # repository-url: https://test.pypi.org/legacy/