Skip to content

Commit 75b4531

Browse files
aaronpowellCopilot
andauthored
Fix codeowner-update auth: add github-token for PR creation (#871)
The default GITHUB_TOKEN cannot push branches in this org. Add explicit github-token using GH_AW_GITHUB_TOKEN secret to the create-pull-request safe output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 338d3e8 commit 75b4531

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/codeowner-update.lock.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/codeowner-update.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ safe-outputs:
1616
base-branch: staged
1717
title-prefix: "[codeowner] "
1818
draft: false
19+
github-token: ${{ secrets.GH_AW_GITHUB_TOKEN }}
1920
add-comment:
2021
max: 1
2122
noop:

0 commit comments

Comments
 (0)