File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 7474 GH_APP_ID : ${{ secrets.GH_APP_ID }}
7575 GH_APP_PRIVATE_KEY : ${{ secrets.GH_APP_PRIVATE_KEY }}
7676 run : |
77- echo "${{ env.GH_APP_PRIVATE_KEY }}" > private-key.pem
78-
79- APP_ID=${{ env.GH_APP_ID }}
77+ echo "$GH_APP_PRIVATE_KEY" > private-key.pem
8078
8179 # Generate JWT
8280 JWT=$(python3 - <<EOF
8583 payload = {
8684 "iat": int(time.time()),
8785 "exp": int(time.time()) + 600, # 10-minute expiration
88- "iss": $APP_ID
86+ "iss": $GH_APP_ID
8987 }
9088 print(jwt.encode(payload, private_key, algorithm="RS256"))
9189 EOF
9997 # Request Installation Access Token
10098 ACCESS_TOKEN=$(curl -s -X POST -H "Authorization: Bearer $JWT" \
10199 -H "Accept: application/vnd.github.v3+json" \
102- https://api.github.com/app/installations/$INSTALLATION_ID/access_tokens | jq -r '.token')
100+ " https://api.github.com/app/installations/$INSTALLATION_ID/access_tokens" | jq -r '.token')
103101
104102 echo "ACCESS_TOKEN=$ACCESS_TOKEN" >> "$GITHUB_ENV"
105103
@@ -165,7 +163,7 @@ jobs:
165163 run : |
166164 diff_output=$(git diff)
167165 if [ -n "$diff_output" ]; then
168- echo "uncommitted_changes=$(echo $ diff_output) " >> "$GITHUB_OUTPUT"
166+ echo "uncommitted_changes=$diff_output" >> "$GITHUB_OUTPUT"
169167 fi
170168
171169 - name : Stage changes
You can’t perform that action at this time.
0 commit comments