From 2251cc2ab444bb06ea7469d1ae43cd35c13ea106 Mon Sep 17 00:00:00 2001 From: KC Berg Date: Wed, 9 Jul 2025 02:47:30 -0600 Subject: [PATCH 1/2] ci: move GH_TOKEN permission check to just before tag creation and remove user check --- .github/workflows/ci.yml | 5 ----- .github/workflows/release.yml | 5 ----- 2 files changed, 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd6921c..5e2b13b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,11 +14,6 @@ jobs: python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - - name: Test GH_TOKEN permissions - run: | - curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }} - shell: bash - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 89a9c18..3cfab40 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,11 +48,6 @@ jobs: with: ref: ${{ github.ref }} fetch-depth: 0 - - name: Test GH_TOKEN permissions - run: | - curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }} - shell: bash - name: Set up Python uses: actions/setup-python@v5 with: From 37d35d511d5c947c3dae29c85fb680d2c94da747 Mon Sep 17 00:00:00 2001 From: KC Berg Date: Wed, 9 Jul 2025 03:00:54 -0600 Subject: [PATCH 2/2] ci: update workflows as requested --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e2b13b..f3ab708 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,7 @@ jobs: git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git - name: Create and push tag for current version (with verbose logging) run: | + git remote -v git tag v${{ steps.get_version.outputs.version }} git fetch origin --tags --verbose GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push origin v${{ steps.get_version.outputs.version }}