Skip to content

Commit c6c50ab

Browse files
authored
ci: use GitHub Apps (#128)
It seems that using GitHub Apps is best practice for it. Signed-off-by: Kentaro Hayashi <hayashi@clear-code.com>
1 parent fe0fe1f commit c6c50ab

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/add-to-project.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,15 @@ jobs:
1010
name: Add issue to project
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Generate token
14+
id: generate_token
15+
uses: actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
16+
with:
17+
app-id: ${{ secrets.PROJECT_APP_ID }}
18+
private-key: ${{ secrets.PROJECT_APP_PRIVATE_KEY }}
19+
owner: fluent
1320
- uses: actions/add-to-project@244f685bbc3b7adfa8466e08b698b5577571133e # v1.0.2
1421
with:
1522
project-url: https://github.com/orgs/fluent/projects/4
16-
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
23+
github-token: ${{ steps.generate_token.outputs.token }}
1724
labeled: waiting-for-triage

0 commit comments

Comments
 (0)