diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-07-26 12:18:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 12:18:47 +0300 |
commit | 89335b22c651a4e2f0b1a68cc334dc148086bdcc (patch) | |
tree | 1c32e508f7787019eab65d145fda456611bddd4e | |
parent | 4daf1c63425c6a7236e6a87ebf1151844546e0f1 (diff) | |
parent | ef9e14f46c05cfd84f6fffe335365cf96365c6d9 (diff) |
Merge pull request #304 from nextcloud/feat/workflow-auto-update-command-rebase.yml
Updating command-rebase.yml workflow from template
-rw-r--r-- | .github/workflows/command-rebase.yml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/command-rebase.yml b/.github/workflows/command-rebase.yml index a99b3d6..78fcf5d 100644 --- a/.github/workflows/command-rebase.yml +++ b/.github/workflows/command-rebase.yml @@ -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 }} |