Skip to content

Commit

Permalink
backport-trigger: Revise permissions based on sudden failures (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbond-msft authored Feb 9, 2024
1 parent 38cbf7c commit b6cb9b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/backport-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
# https://docs.opensource.microsoft.com/github/apps/permission-changes/
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
actions: read
actions: none
contents: read
security-events: write
security-events: none
env:
# Protect against script injection attacks via input variables (i.e., the content of the variables could be executed at the time of evaluation/expansion within a script)
# Scripts must consume the environment variable settings instead
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/backport-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ jobs:
# https://docs.opensource.microsoft.com/github/apps/permission-changes/
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
actions: write
actions: none
contents: read
security-events: write
security-events: none
if: github.event.issue.pull_request != '' && startswith(github.event.comment.body, '@gitbot backport')
outputs:
target_branch: ${{ steps.parse_comment.outputs.target_branch }}
Expand Down

0 comments on commit b6cb9b0

Please sign in to comment.