Skip to content

Commit bcc00e6

Browse files
authored
CI: Add content write permission to the Release Drafter workflow (#3872)
1 parent 141a9d4 commit bcc00e6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/release-drafter.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Draft the next release notes
22
#
3-
# This workflow is run to update the next release notes as pull requests are
4-
# merged into the main branch. The configuration file is located at
5-
# `.github/release-drafter.yml`.
3+
# This workflow is run to update the next release notes as pull requests are merged into
4+
# the main branch. The configuration file is located at `.github/release-drafter.yml`.
65
#
76
name: Release Drafter
87

@@ -11,10 +10,14 @@ on:
1110
branches:
1211
- main
1312

14-
permissions: {}
13+
permissions:
14+
contents: read
1515

1616
jobs:
1717
update_release_draft:
18+
permissions:
19+
# write permission is required to create a github release
20+
contents: write
1821
runs-on: ubuntu-latest
1922
if: github.repository == 'GenericMappingTools/pygmt'
2023

0 commit comments

Comments
 (0)