Skip to content

Commit 3664d6f

Browse files
authored
CI: release-drafter configuration: permissions, skip-changelog label (#3631)
1 parent 3b2517f commit 3664d6f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/release-drafter.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ categories:
2323
- 'kind/dependencies'
2424
- 'kind/chore'
2525
tag-template: "- $TITLE @$AUTHOR (#$NUMBER)"
26+
exclude-labels:
27+
- 'skip-changelog'
2628
template: |
2729
## Changes
2830
@@ -31,8 +33,8 @@ template: |
3133
## Geolite2 notice
3234
3335
This product includes GeoLite2 data created by MaxMind, available from <a href="https://www.maxmind.com">https://www.maxmind.com</a>.
34-
36+
3537
## Installation
3638
3739
Take a look at the [installation instructions](https://doc.crowdsec.net/docs/getting_started/install_crowdsec).
38-
40+

.github/workflows/ci_release-drafter.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@ on:
44
push:
55
# branches to consider in the event; optional, defaults to all
66
branches:
7+
- main
78
- master
89
- releases/**
910

11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
update_release_draft:
16+
permissions:
17+
contents: write
18+
pull-requests: read
1219
runs-on: ubuntu-latest
1320
steps:
1421
# Drafts your next Release notes as Pull Requests are merged into "master"
1522
- uses: release-drafter/release-drafter@v6
1623
with:
17-
config-name: release-drafter.yml
1824
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
19-
# config-name: my-config.yml
25+
config-name: release-drafter.yml
2026
env:
2127
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)