diff --git a/.github/branch-freeze/workflows/handle-command.ps1 b/.github/branch-freeze/workflows/handle-command.ps1 index 1d88c03b104..61265d0bbaf 100644 --- a/.github/branch-freeze/workflows/handle-command.ps1 +++ b/.github/branch-freeze/workflows/handle-command.ps1 @@ -44,7 +44,7 @@ function Add-Reaction { -Content $Content } catch { - return + Write-Host "::warning::Failed to add the '$Content' reaction to comment $CommentId." } } diff --git a/.github/workflows/branch-freeze-command.yml b/.github/workflows/branch-freeze-command.yml index 9864c027809..89ed6d35a7c 100644 --- a/.github/workflows/branch-freeze-command.yml +++ b/.github/workflows/branch-freeze-command.yml @@ -16,9 +16,10 @@ on: permissions: contents: read # checkout the shared scripts - issues: write # create/close/label the tracking issue, react, comment - # `statuses: write` and `pull-requests: read` are required only by the reusable - # refresh workflow and are granted on the `refresh` job below (least privilege). + issues: write # create/close/label the tracking issue; react/reply on issue comments + pull-requests: write # react/reply when the command comes from a pull request comment + # `statuses: write` is required only by the reusable refresh workflow and is + # granted on the `refresh` job below (least privilege). concurrency: # Do not let two freeze/unfreeze operations modify tracking issues at once.