Skip to content

Commit

Permalink
ci: use github application instead of pat in workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Sep 25, 2024
1 parent f19aa2c commit d416fc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/add_issues_prs_to_dedalo_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ jobs:
name: Add to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ vars.APOLLO_APP_ID }}
application_private_key: ${{ secrets.APOLLO_APP_SECRET }}
- name: Add to Dedalo Project
uses: actions/[email protected]
with:
project-url: https://github.com/orgs/eduNEXT/projects/1
github-token: ${{ secrets.DEDALO_PAT }}
github-token: ${{ steps.get_workflow_token.outputs.token }}
32 changes: 19 additions & 13 deletions .github/workflows/pr_issue_assignment.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
name: PR-Issue assignment

on:
issues:
types: [opened]
pull_request:
types: [opened]
issues:
types: [opened]
pull_request:
types: [opened]

jobs:
auto-assign:
runs-on: ubuntu-latest
steps:
- name: 'Auto-assign PR-Issue'
uses: pozil/[email protected]
with:
repo-token: ${{ secrets.DEDALO_PAT }}
teams: tutor-plugins
numOfAssignee: 2
auto-assign:
name: Auto Assign
runs-on: ubuntu-latest
steps:
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v3
with:
application_id: ${{ vars.APOLLO_APP_ID }}
application_private_key: ${{ secrets.APOLLO_APP_SECRET }}
- name: Auto-assign PR-Issue
uses: pozil/auto-assign-issue@v2
with:
repo-token: ${{ steps.get_workflow_token.outputs.token }}
teams: dedalo

0 comments on commit d416fc0

Please sign in to comment.