diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91e5018..74d2ab9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,4 +69,9 @@ jobs: run: bumpver update --patch --commit - name: Push version bump commit run: | - git push \ No newline at end of file + git push + - name: Test GH_TOKEN permissions + run: | + curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }} + shell: bash \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3c011bf..e39619c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,6 +54,11 @@ jobs: - 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: Test GH_TOKEN permissions + run: | + curl -v -H "Authorization: token ${{ secrets.GH_TOKEN }}" \ + https://api.github.com/repos/${{ github.repository }} + shell: bash - name: Set git user for GitHub Actions bot run: | git config user.name "github-actions[bot]"