Skip to content

Commit

Permalink
chore: use github app instead of a personal access token
Browse files Browse the repository at this point in the history
  • Loading branch information
leonsteinhaeuser committed Jan 25, 2024
1 parent a175b06 commit 7db64f2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/project_automations.yml
Expand Up @@ -5,11 +5,7 @@ on:
types:
- opened
pull_request_target:
types:
- opened
pull_request:
types:
- opened

jobs:
issue_opened:
Expand All @@ -20,9 +16,11 @@ jobs:
- name: 'Move issue to Todo'
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
gh_app_ID: ${{ vars.GH_APP_ID }}
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
gh_app_secret_key: ${{ vars.PROJECT_ID }}
project_id: ${{ vars.PROJECT_ID }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.issue.node_id }}
status_value: "Todo"

Expand All @@ -34,8 +32,10 @@ jobs:
- name: 'Move PR to "In Progress"'
uses: leonsteinhaeuser/project-beta-automations@v2.1.0
with:
gh_token: ${{ secrets.PROJECT_PERMISSIONS_TOKEN }}
gh_app_ID: ${{ vars.GH_APP_ID }}
gh_app_installation_ID: ${{ vars.GH_APP_INSTALLATION_ID }}
gh_app_secret_key: ${{ vars.PROJECT_ID }}
project_id: ${{ vars.PROJECT_ID }}
user: leonsteinhaeuser
project_id: ${{ secrets.PROJECT_ID }}
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "In Progress"

0 comments on commit 7db64f2

Please sign in to comment.