Skip to content

Commit dc38aae

Browse files
authored
CI format-json-yml: GitHub AppのTokenを与える (#1486)
1 parent e1c8f12 commit dc38aae

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.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/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}}
2935
concurrency:
3036
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
3137
cancel-in-progress: true

0 commit comments

Comments
 (0)