Skip to content

Commit 8e05fdb

Browse files
authored
1 parent 03053a8 commit 8e05fdb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/check-codeowners.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@ jobs:
4646
repository: ${{github.event.pull_request.head.repo.full_name}}
4747
path: pr
4848

49+
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
50+
id: otelbot-token
51+
with:
52+
app-id: ${{ vars.OTELBOT_APP_ID }}
53+
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
54+
4955
- name: Gen CODEOWNERS
5056
run: |
5157
cd pr
52-
GITHUB_TOKEN=${{ secrets.READ_ORG_AND_USER_TOKEN }} ../.tools/githubgen codeowners
58+
GITHUB_TOKEN=${{ steps.otelbot-token.outputs.token }} ../.tools/githubgen codeowners
5359
git diff -s --exit-code || (echo 'Generated code is out of date, please run "make gencodeowners" or apply this diff and commit the changes in this PR.' && git diff && exit 1)

0 commit comments

Comments
 (0)