File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,15 +25,22 @@ jobs:
2525 - name : Checkout
2626 uses : actions/checkout@v6
2727
28- - name : Decode Credentials
29- id : creds
28+ - name : Decode and Set App Credentials
3029 run : |
3130 DECODED=$(echo "${{ secrets.APP_CREDS_BASE64 }}" | base64 -d)
32- echo "data=$DECODED" >> $GITHUB_OUTPUT
31+ APP_ID=$(echo "$DECODED" | grep -o '"app_id":"[^"]*"' | cut -d'"' -f4)
32+ INSTALLATION_ID=$(echo "$DECODED" | grep -o '"installation_id":"[^"]*"' | cut -d'"' -f4)
33+ PRIVATE_KEY=$(echo "$DECODED" | grep -o '"private_key":"[^"]*"' | sed 's/"private_key":"//' | sed 's/"$//')
34+
35+ echo "GITHUB_APP_ID=$APP_ID" >> $GITHUB_ENV
36+ echo "GITHUB_APP_INSTALLATION_ID=$INSTALLATION_ID" >> $GITHUB_ENV
37+ echo "GITHUB_APP_PRIVATE_KEY=$PRIVATE_KEY" >> $GITHUB_ENV
3338
3439 - name : Get GitHub App Token
3540 id : auth
3641 continue-on-error : true
3742 uses : step-security/github-app-auth-action@release
38- with :
39- creds : ${{ steps.creds.outputs.data }}
43+ env :
44+ APP_ID : ${{ env.GITHUB_APP_ID }}
45+ INSTALLATION_ID : ${{ env.GITHUB_APP_INSTALLATION_ID }}
46+ PRIVATE_KEY : ${{ env.GITHUB_APP_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments