summaryrefslogtreecommitdiff
path: root/.github/workflows/make_release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/make_release.yml')
-rw-r--r--.github/workflows/make_release.yml8
1 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/make_release.yml b/.github/workflows/make_release.yml
index 47dbbea374..c789d33f16 100644
--- a/.github/workflows/make_release.yml
+++ b/.github/workflows/make_release.yml
@@ -5,14 +5,20 @@ on:
tags:
- "v*"
+permissions:
+ contents: read
+
jobs:
build:
runs-on: ubuntu-latest
+ permissions:
+ contents: write
+ if: ${{ github.repository_owner == 'systemd' }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release
- uses: softprops/action-gh-release@v1
+ uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
prerelease: ${{ contains(github.ref_name, '-rc') }}
draft: ${{ github.repository == 'systemd/systemd' }}