* chore: Set permissions for GitHub actions Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. * Remove global permissions which are set implicitly With restrictive settings in the global GitHub Action permission settings those permissions are given implicitly. Co-authored-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com> Co-authored-by: Joakim Sørensen <hi@ludeeus.dev> Co-authored-by: Stefan Agner <stefan@agner.ch>
19 lines
458 B
YAML
19 lines
458 B
YAML
name: Release Drafter
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- rel-*
|
|
|
|
jobs:
|
|
update_release_draft:
|
|
permissions:
|
|
contents: write # for release-drafter/release-drafter to create a github release
|
|
pull-requests: read # for release-drafter/release-drafter to read PR content and labels
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: release-drafter/release-drafter@v5
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|