Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/.ncmake-workflows.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"source": "nextcloud"
},
"workflow-updater.yml": {
"hash": "2c0a58585fdb09fc8bd5b4ab6b8a4647ffbc6620823383b430515a1c8d10e0e1",
"sha": "9f8b81d87ae4c77b5d68846642004ef4252da308",
"hash": "48a7857aa06325d538b7fe62932e26b49fd0e6d9ba649a6951899b1072129363",
"sha": "e419581452bca16e3b0004e563f2817406f80984",
"source": "ncmake"
}
}
9 changes: 8 additions & 1 deletion .github/workflows/workflow-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ on:
# "@ncmake-updater rebase" in a pull request comment. issue_comment fires for
# every comment in the repository, plain issues included; the update job
# filters down to pull request comments that carry the command.
issue_comment:
issue_comment: # zizmor: ignore[dangerous-triggers] commands only from OWNER/MEMBER/COLLABORATOR, no comment text in run:, default branch checked out
types: [created]

permissions:
Expand Down Expand Up @@ -84,6 +84,11 @@ jobs:
with:
client-id: ${{ secrets.NCMAKE_UPDATER_CLIENT_ID }}
private-key: ${{ secrets.NCMAKE_UPDATER_PRIVATE_KEY }}
# Without these the token carries every permission of the app.
permission-contents: write # push the update branch
permission-pull-requests: write # open the pull request
permission-workflows: write # the branch changes .github/workflows/
permission-metadata: read

- name: Acknowledge the command
if: github.event_name == 'issue_comment'
Expand Down Expand Up @@ -172,6 +177,8 @@ jobs:
with:
client-id: ${{ secrets.NCMAKE_UPDATER_CLIENT_ID }}
private-key: ${{ secrets.NCMAKE_UPDATER_PRIVATE_KEY }}
permission-contents: write # delete the branch
permission-metadata: read

- name: Delete the merged updater branch if it is still there
env:
Expand Down
Loading