diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74d2ab9..4e024c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,11 @@ 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 e39619c..d29d361 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,11 @@ 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: @@ -54,11 +59,6 @@ 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]"