File tree 1 file changed +20
-0
lines changed 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -106,8 +106,28 @@ jobs:
106
106
env :
107
107
GH_TOKEN : ${{ steps.app-token.outputs.token }}
108
108
109
+ - name : Debug GitHub App authentication
110
+ run : |
111
+ echo "Authenticated user:"
112
+ gh api user --jq '{login: .login, id: .id, type: .type}'
113
+
114
+ echo "Repository permissions:"
115
+ gh api repos/${{ github.repository }} --jq '.permissions'
116
+
117
+ echo "Branch protection rules:"
118
+ gh api repos/${{ github.repository }}/branches/${{ github.ref_name }}/protection --jq '.restrictions'
119
+ env :
120
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
121
+
109
122
- name : Commit and push changes
110
123
run : |
124
+ echo "Verifying token and auth status:"
125
+ gh auth status
126
+
127
+ echo "Attempting explicit login:"
128
+ echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token
129
+ gh auth status
130
+
111
131
git config --global user.name '${{ steps.app-token.outputs.app-slug }}[bot]'
112
132
git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com>'
113
133
git add project/EffektVersion.scala
You can’t perform that action at this time.
0 commit comments