Skip to content

Commit

Permalink
feat(IDX): replace PAT with GitHub app (#375)
Browse files Browse the repository at this point in the history
* feat(IDX): replace PAT with GitHub app

* test workflow

* Update open-repositories.txt

* test

* fix sort

* test succeeded
  • Loading branch information
cgundy authored Nov 19, 2024
1 parent 8aa72e7 commit 3730152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/check_new_repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ jobs:
name: Check if repository is compliant
runs-on: ubuntu-latest
steps:
- name: Create GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.REPO_COMPLIANCE_BOT_APP_ID }}
private-key: ${{ secrets.REPO_COMPLIANCE_BOT_PRIVATE_KEY }}

- name: Checkout
uses: actions/checkout@v3

Expand All @@ -32,4 +39,4 @@ jobs:
uses: ./.github/actions/check_compliance/
with:
repo-name: ${{ steps.get-repo-name.outputs.repo-name }}
github-token: ${{ secrets.COMPLIANCE_READ_REPO_PERMISSIONS }}
github-token: ${{ steps.app-token.outputs.token }}
1 change: 0 additions & 1 deletion open-repositories.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ sdk
setup-dfx
stable-structures
standalone-sig-verifier-web
test-compliant-repository-public
test-state-machine-client
threshold
vessel
Expand Down

0 comments on commit 3730152

Please sign in to comment.