diff --git a/.github/workflows/autorelease.yml b/.github/workflows/autorelease.yml index 64f3124fe..1b22cd951 100644 --- a/.github/workflows/autorelease.yml +++ b/.github/workflows/autorelease.yml @@ -106,8 +106,28 @@ jobs: env: GH_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Debug GitHub App authentication + run: | + echo "Authenticated user:" + gh api user --jq '{login: .login, id: .id, type: .type}' + + echo "Repository permissions:" + gh api repos/${{ github.repository }} --jq '.permissions' + + echo "Branch protection rules:" + gh api repos/${{ github.repository }}/branches/${{ github.ref_name }}/protection --jq '.restrictions' + env: + GH_TOKEN: ${{ steps.app-token.outputs.token }} + - name: Commit and push changes run: | + echo "Verifying token and auth status:" + gh auth status + + echo "Attempting explicit login:" + echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token + gh auth status + git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]' git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>' git add project/EffektVersion.scala