File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 1717 - 3-x-y
1818 runs-on : ubuntu-latest
1919 environment : auto-updater
20+ permissions :
21+ id-token : write # for secret service access
2022 steps :
2123 - name : Generate GitHub App token (updater app)
2224 uses : electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
@@ -54,17 +56,15 @@ jobs:
5456 --body "Automated PR to update abi_registry.json" \
5557 --head "feat/update-abi-registry-${{ matrix.branch }}-${{ hashFiles('abi_registry.json') }}" \
5658 --base ${{ matrix.branch }}
57- - name : Generate GitHub App token (approver app)
58- uses : electron/github-app-auth-action@384fd19694fe7b6dcc9a684746c6976ad78228ae # v1.1.1
59+ - name : Get GitHub App token (approver app)
5960 if : ${{ steps.commit-changes.outputs.sha }}
60- id : generate-token-approver
61- with :
62- creds : ${{ secrets.APPROVER_GH_APP_CREDS }}
61+ id : secret-service
62+ uses : electron/secret-service-action@3476425e8b30555aac15b1b7096938e254b0e155 # v1.0.0
6363 - name : Approve and merge pull request
6464 if : ${{ steps.commit-changes.outputs.sha }}
6565 shell : bash
6666 env :
67- GITHUB_TOKEN : ${{ steps.generate-token-approver .outputs.token }}
67+ GITHUB_TOKEN : ${{ fromJSON( steps.secret-service .outputs.secrets).PR_APPROVER_GH_TOKEN }}
6868 run : |
6969 set -eo pipefail
7070 gh pr review "feat/update-abi-registry-${{ matrix.branch }}-${{ hashFiles('abi_registry.json') }}" --approve
You can’t perform that action at this time.
0 commit comments