Skip to content

Commit

Permalink
feat: use github app for authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
joshjohanning committed Jun 28, 2024
1 parent 99738c6 commit 678ff9c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/update-organization-readme-badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ jobs:

steps:
- uses: actions/checkout@v4


- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

- name: organization-readme-badge-generator
id: organization-readme-badge-generator
uses: joshjohanning/organization-readme-badge-generator@v1
with:
organization: ${{ github.repository_owner }}
token: ${{ secrets.ADMIN_TOKEN }} # recommend to use a GitHub App and not a PAT
token: ${{ steps.app-token.outputs.token }} # recommend to use a GitHub App and not a PAT

- name: write to job summary
run: |
Expand Down

0 comments on commit 678ff9c

Please sign in to comment.