diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b67232..9845c78 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,6 +6,7 @@ on: permissions: contents: write + issues: write id-token: write jobs: @@ -16,7 +17,7 @@ jobs: - name: Wait for manual approval uses: trstringer/manual-approval@v1 with: - secret: ${{ secrets.GH_TOKEN }} + secret: ${{ secrets.GITHUB_TOKEN }} issue-title: "Release Approval for ${{ github.ref_name }}" issue-body: "Please approve this release to publish to PyPI and Docker." approvers: sgerlach,kcberg,danielhopkins,clamey,Bwvolleyball @@ -29,11 +30,6 @@ jobs: runs-on: ubuntu-latest needs: approval steps: - - name: Test GH_TOKEN permissions - run: | - curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ - https://api.github.com/repos/${{ github.repository }} - shell: bash - name: Confirm release tag exists run: | echo "Release tag is ${{ github.ref }}" @@ -58,11 +54,8 @@ jobs: pip install build bumpver - name: Set up git for pushing run: | - git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git - - name: Set git user for deploy - run: | - git config user.name "${{ secrets.GH_DEPLOY_USER }}" - git config user.email "${{ secrets.GH_DEPLOY_EMAIL }}" + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Build package run: | python -m build @@ -79,14 +72,10 @@ 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 git for pushing run: | - git remote set-url origin https://${{ secrets.GH_DEPLOY_USER }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx