use a first party action for github app tokens

This commit is contained in:
GrantBirki 2023-11-02 13:23:04 -06:00
Родитель efd7cd6516
Коммит 9f4aa9e7cb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 9029BBCCC15C6F8C
1 изменённых файлов: 12 добавлений и 6 удалений

Просмотреть файл

@ -80,21 +80,27 @@ on:
- cron: '0 1 * * 3' # Wednesday at 01:00
workflow_dispatch:
# The minimum permissions to run this workflow
permissions:
contents: write
pull-requests: write
checks: read
jobs:
combine-prs:
runs-on: ubuntu-latest
steps:
- name: Use GitHub App Token
uses: wow-actions/use-app-token@d7957e08172ca2e8e49b35b8d266ad585885edc7 # pin@v2.0.2
id: generate_token
uses: actions/create-github-app-token@eaddb9eb7e4226c68cf4b39f167c83e5bd132b3e # pin@v1.5.1
id: app-token
with:
app_id: ${{ secrets.APP_ID }} # The ID of the GitHub App
private_key: ${{ secrets.PRIVATE_KEY }} # The private key of the GitHub App
fallback: ${{ secrets.GITHUB_TOKEN }} # fall back to the default token if the app token is not available
app-id: ${{ secrets.APP_ID }} # The ID of the GitHub App
private-key: ${{ secrets.PRIVATE_KEY }} # The private key of the GitHub App
- name: combine-prs
uses: github/combine-prs@vX.X.X # where X.X.X is the latest version
with:
github_token: ${{ steps.generate_token.outputs.BOT_TOKEN }} # A GitHub app token generated by the previous step
github_token: ${{ steps.app-token.outputs.token }} # A GitHub app token generated by the previous step
labels: combined-pr
```