ci: some tweaks
[platform/upstream/libxkbcommon.git] / .github / workflows / github-release.yml
index 0a89026..2c0f72a 100644 (file)
@@ -5,12 +5,21 @@ on:
     tags:
       - 'xkbcommon-*'
 
+# Set permissions at the job level.
+permissions: {}
+
 jobs:
   build:
     name: Automatically create GitHub release for tag
     runs-on: ubuntu-20.04
+    permissions:
+      contents: write
     steps:
       - uses: actions/checkout@v2
+        with:
+          fetch-depth: 0
+          persist-credentials: false
+
       - uses: actions/create-release@v1
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}