Skip to content

Commit 9b0591a

Browse files
nextcloud-botmgallien
authored andcommitted
Updating command-rebase.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
1 parent bc1509d commit 9b0591a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/command-rebase.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ on:
99
issue_comment:
1010
types: created
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
rebase:
1417
runs-on: ubuntu-latest
18+
permissions:
19+
contents: none
1520

1621
# On pull requests and if the comment starts with `/rebase`
1722
if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase')
@@ -31,11 +36,8 @@ jobs:
3136
fetch-depth: 0
3237
token: ${{ secrets.COMMAND_BOT_PAT }}
3338

34-
- name: Fix permissions
35-
run: git config --global --add safe.directory /github/workspace
36-
3739
- name: Automatic Rebase
38-
uses: cirrus-actions/rebase@1.5
40+
uses: cirrus-actions/rebase@1.7
3941
env:
4042
GITHUB_TOKEN: ${{ secrets.COMMAND_BOT_PAT }}
4143

0 commit comments

Comments
 (0)