Updating command-rebase.yml workflow from template
authorNextcloud bot <bot@nextcloud.com>
Sat, 11 Jun 2022 15:15:02 +0000 (15:15 +0000)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Sun, 26 Jun 2022 20:20:25 +0000 (22:20 +0200)
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
.github/workflows/command-rebase.yml

index a99b3d6336ff9c2d0e178122f7bfb451ac04d295..78fcf5d1918df634fcc86f25a33023db368e41aa 100644 (file)
@@ -9,9 +9,14 @@ on:
   issue_comment:
     types: created
 
+permissions:   
+  contents: read       
+
 jobs:
   rebase:
     runs-on: ubuntu-latest
+    permissions:
+      contents: none
 
     # On pull requests and if the comment starts with `/rebase`
     if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
@@ -31,11 +36,8 @@ jobs:
           fetch-depth: 0
           token: ${{ secrets.COMMAND_BOT_PAT }}
 
-      - name: Fix permissions
-        run: git config --global --add safe.directory /github/workspace
-
       - name: Automatic Rebase
-        uses: cirrus-actions/rebase@1.5
+        uses: cirrus-actions/rebase@1.7
         env:
           GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}