Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

Replace PAT auth in github-repo-stats with GitHub App token (#216)

Priyanshu Agrawal405bd04b8547
diff --git a/.github/workflows/github-repo-stats.yml b/.github/workflows/github-repo-stats.yml
index 62ce21480..6595e16b7 100644
--- a/.github/workflows/github-repo-stats.yml
+++ b/.github/workflows/github-repo-stats.yml
@@ -7,16 +7,28 @@ on:
- cron: "0 23 * * *"
workflow_dispatch: # Allow for running this manually.
+permissions:
+ contents: read
+
jobs:
j1:
name: github-repo-stats
runs-on: ubuntu-latest
steps:
+ - name: generate app token
+ id: app-token
+ uses: actions/create-github-app-token@v1
+ with:
+ app-id: 3189942
+ private-key: ${{ secrets.POWER_PLATFORM_SKILLS_APP_PRIVATE_KEY }}
+ permission-administration: read
+ permission-contents: write
+
- name: run-ghrs
# Use latest release.
uses: jgehrcke/github-repo-stats@RELEASE
with:
repository: microsoft/power-platform-skills
- ghtoken: ${{ secrets.ghrs_github_api_token }}
+ ghtoken: ${{ steps.app-token.outputs.token }}
databranch: github-repo-stats
ghpagesprefix: https://microsoft.github.io/power-platform-skills