Use app auth instead of token auth #139
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## @file | |
# Assign reviewers from a REVIEWERS file using CODEOWNERS syntax | |
# | |
# Copyright (c) 2022, Intel Corporation. All rights reserved.<BR> | |
# SPDX-License-Identifier: BSD-2-Clause-Patent | |
## | |
name: Assign reviewers from a REVIEWERS file using CODEOWNERS syntax | |
on: | |
pull_request_target: | |
types: [opened, synchronize, reopened, ready_for_review] | |
branches: | |
- 'master' | |
jobs: | |
assign_reviewers: | |
if: github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Pull Request Target | |
uses: actions/checkout@v4 | |
- name: Get Token | |
id: get_workflow_token | |
uses: peter-murray/workflow-application-token-action@v2 | |
with: | |
application_id: ${{ secrets.APPLICATION_ID }} | |
application_private_key: ${{ secrets.APPLICATION_PRIVATE_KEY }} | |
organization: tianocore | |
- uses: mdkinney/github-action-assign-reviewers@main | |
with: | |
token: ${{ steps.get_workflow_token.outputs.token }} |