File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,15 +17,21 @@ jobs:
1717 format-json-yml :
1818 runs-on : ubuntu-latest
1919 steps :
20+ - name : Generate a token
21+ id : generate_token
22+ uses : actions/create-github-app-token@v1.7.0
23+ with :
24+ app-id : ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
25+ private-key : ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
2026 - uses : actions/checkout@v4.1.1
2127 if : github.event_name != 'pull_request' || github.event.action != 'closed'
2228 with :
2329 fetch-depth : 0
2430 ref : ${{ github.event.pull_request.head.sha || github.sha }}
25- token : ${{secrets.CREATE_WORKFLOW_CI_TOKEN }}
31+ token : ${{steps.generate_token.outputs.token }}
2632 - uses : dev-hato/actions-format-json-yml@v0.0.59
2733 with :
28- github-token : ${{secrets.GITHUB_TOKEN }}
34+ github-token : ${{steps.generate_token.outputs.token }}
2935concurrency :
3036 group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
3137 cancel-in-progress : true
You can’t perform that action at this time.
0 commit comments