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,22 +25,17 @@ jobs:
2525 - name : Checkout
2626 uses : actions/checkout@v6
2727
28- - name : Decode and Set App Credentials
28+ - name : Decode App Credentials
29+ id : decode
2930 run : |
3031 DECODED=$(echo "${{ secrets.APP_CREDS_BASE64 }}" | base64 -d)
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
32+ echo "creds<<EOF" >> $GITHUB_OUTPUT
33+ echo "$DECODED" >> $GITHUB_OUTPUT
34+ echo "EOF" >> $GITHUB_OUTPUT
3835
3936 - name : Get GitHub App Token
4037 id : auth
4138 continue-on-error : true
4239 uses : step-security/github-app-auth-action@release
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 }}
40+ with :
41+ creds : ${{ steps.decode.outputs.creds }}
You can’t perform that action at this time.
0 commit comments