Skip to content

Commit e765bc1

Browse files
Repo File Sync: Update to Mu DevOps v15.0.3 (#62)
synced local file(s) with [microsoft/mu_devops](https://github.com/microsoft/mu_devops). 🤖: View the [Repo File Sync Configuration File](https://github.com/microsoft/mu_devops/blob/main/.sync/Files.yml) to see how files are synced. --- This PR was created automatically by the [repo-file-sync-action](https://github.com/BetaHuhn/repo-file-sync-action) workflow run [#16039182195](https://github.com/microsoft/mu_devops/actions/runs/16039182195) Signed-off-by: Project Mu UEFI Bot <[email protected]> Co-authored-by: mu-automation[bot] <204385837+mu-automation[bot]@users.noreply.github.com>
1 parent fab6dd2 commit e765bc1

File tree

8 files changed

+32
-42
lines changed

8 files changed

+32
-42
lines changed

.github/workflows/issue-assignment.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,5 @@ on:
1919
jobs:
2020
apply:
2121

22-
permissions:
23-
contents: read
24-
issues: write
25-
26-
uses: microsoft/mu_devops/.github/workflows/[email protected]
22+
uses: microsoft/mu_devops/.github/workflows/[email protected]
23+
secrets: inherit

.github/workflows/label-issues.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121
types:
2222
- edited
2323
- opened
24-
pull_request:
24+
pull_request_target:
2525
types:
2626
- edited
2727
- opened
@@ -31,9 +31,5 @@ on:
3131

3232
jobs:
3333
apply:
34-
35-
permissions:
36-
contents: read
37-
pull-requests: write
38-
39-
uses: microsoft/mu_devops/.github/workflows/[email protected]
34+
uses: microsoft/mu_devops/.github/workflows/[email protected]
35+
secrets: inherit

.github/workflows/label-sync.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,5 @@ on:
2525
jobs:
2626
sync:
2727

28-
permissions:
29-
issues: write
30-
31-
uses: microsoft/mu_devops/.github/workflows/[email protected]
28+
uses: microsoft/mu_devops/.github/workflows/[email protected]
29+
secrets: inherit

.github/workflows/pull-request-formatting-validator.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name: Validate Pull Request Formatting
1414

1515
on:
16-
pull_request:
16+
pull_request_target:
1717
types:
1818
- edited
1919
- opened
@@ -24,11 +24,15 @@ jobs:
2424
validate_pr:
2525
runs-on: ubuntu-latest
2626

27-
permissions:
28-
contents: read
29-
pull-requests: write
30-
3127
steps:
28+
- name: Generate Token
29+
id: app-token
30+
uses: actions/create-github-app-token@v2
31+
with:
32+
app-id: ${{ vars.MU_ACCESS_APP_ID }}
33+
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}
34+
owner: ${{ github.repository_owner }}
35+
3236
- run: |
3337
prTitle="$(gh api graphql -F owner=$OWNER -F name=$REPO -F pr_number=$PR_NUMBER -f query='
3438
query($name: String!, $owner: String!, $pr_number: Int!) {
@@ -45,7 +49,7 @@ jobs:
4549
fi
4650
4751
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
4953
OWNER: ${{ github.repository_owner }}
5054
PR_NUMBER: ${{ github.event.number }}
5155
PR_URL: ${{ github.event.pull_request.html_url }}

.github/workflows/release-draft.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,5 @@ jobs:
2929
draft:
3030
name: Draft Releases
3131

32-
permissions:
33-
contents: write
34-
pull-requests: write
35-
36-
uses: microsoft/mu_devops/.github/workflows/[email protected]
32+
uses: microsoft/mu_devops/.github/workflows/[email protected]
3733
secrets: inherit

.github/workflows/scheduled-maintenance.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,21 @@ jobs:
2525
repo_cleanup:
2626
runs-on: ubuntu-latest
2727

28-
permissions:
29-
pull-requests: write
30-
issues: write
31-
3228
steps:
29+
- name: Generate Token
30+
id: app-token
31+
uses: actions/create-github-app-token@v2
32+
with:
33+
app-id: ${{ vars.MU_ACCESS_APP_ID }}
34+
private-key: ${{ secrets.MU_ACCESS_APP_PRIVATE_KEY }}
35+
owner: ${{ github.repository_owner }}
36+
3337
- name: Get Repository Info
3438
run: echo "REPOSITORY_NAME=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
3539

3640
- name: Prune Won't Fix Pull Requests
3741
env:
38-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3943
REPOSITORY: ${{ env.REPOSITORY_NAME }}
4044
run: |
4145
gh api \
@@ -50,7 +54,7 @@ jobs:
5054
5155
- name: Prune Won't Fix Issues
5256
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
5458
REPOSITORY: ${{ env.REPOSITORY_NAME }}
5559
run: |
5660
gh api \

.github/workflows/stale.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,5 @@ on:
2525
jobs:
2626
check:
2727

28-
permissions:
29-
issues: write
30-
pull-requests: write
31-
32-
uses: microsoft/mu_devops/.github/workflows/[email protected]
28+
uses: microsoft/mu_devops/.github/workflows/[email protected]
29+
secrets: inherit

.github/workflows/triage-issues.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,5 @@ on:
2020
jobs:
2121
triage:
2222

23-
permissions:
24-
issues: write
25-
26-
uses: microsoft/mu_devops/.github/workflows/[email protected]
23+
uses: microsoft/mu_devops/.github/workflows/[email protected]
24+
secrets: inherit

0 commit comments

Comments
 (0)