Skip to content

Commit 10f944e

Browse files
authored
CIにGitHub AppのTokenを与える (#927)
1 parent c649b3f commit 10f944e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/format-json-yml.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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/[email protected]
23+
with:
24+
app-id: ${{ secrets.PROJECT_AUTOMATION_APP_ID }}
25+
private-key: ${{ secrets.PROJECT_AUTOMATION_PRIVATE_KEY }}
2026
- uses: actions/[email protected]
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 }}
25-
token: ${{secrets.CREATE_WORKFLOW_CI_TOKEN}}
31+
token: ${{steps.generate_token.outputs.token}}
2632
- uses: dev-hato/[email protected]
2733
with:
28-
github-token: ${{secrets.GITHUB_TOKEN}}
34+
github-token: ${{steps.generate_token.outputs.token}}
2935
concurrency:
3036
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
3137
cancel-in-progress: true

0 commit comments

Comments
 (0)