Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 3ac0e76

Browse files
author
David Robertson
authored
yet another attempt to make dependabot changelogs work (#14021)
* yet another attempt to make dependabot changelogs work * Changelog
1 parent a52d27a commit 3ac0e76

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/dependabot_changelog.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ permissions:
99
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions#enable-auto-merge-on-a-pull-request
1010
# for a similar example
1111
contents: write
12+
# The pull_requests "synchronize" event doesn't seem to fire with just `contents: write`, so
13+
# CI doesn't run with the new changelog. Maybe `pull_requests: write` will fix this?
14+
pull_requests: write
1215

1316
jobs:
1417
add-changelog:
@@ -27,3 +30,5 @@ jobs:
2730
git commit -m "Changelog"
2831
git push
2932
shell: bash
33+
# THIS WORKFLOW HAS VARIOUS WRITE PERMISSIONS---do not add other jobs here unless they
34+
# are sufficiently locked down to dependabot only as above.

changelog.d/14021.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Prototype a workflow to automatically add changelogs to dependabot PRs.

0 commit comments

Comments
 (0)