Skip to content

Commit 104c45d

Browse files
ci: correct copilot-collections permissions so that the job can create a PR if needed (#253)
The job ran successfully if there were no changes needed, but was missing the permissions required to open a PR if changes were needed.
1 parent 1b03eb4 commit 104c45d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/copilot-collections-update.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ on:
66

77
permissions: {}
88

9-
jobs:
10-
check-update:
9+
jobs:
10+
check-update:
1111
# Pinned to main to get the latest logic, but the content comes from the .copilot-collections.yaml file.
1212
uses: canonical/copilot-collections/.github/workflows/auto_update_collections.yaml@main
13+
permissions:
14+
contents: write
15+
pull-requests: write

0 commit comments

Comments
 (0)