Skip to content
This repository was archived by the owner on Feb 21, 2025. It is now read-only.

Commit b6cb9b0

Browse files
authored
backport-trigger: Revise permissions based on sudden failures (#36)
1 parent 38cbf7c commit b6cb9b0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/backport-action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
# https://docs.opensource.microsoft.com/github/apps/permission-changes/
4747
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
4848
permissions:
49-
actions: read
49+
actions: none
5050
contents: read
51-
security-events: write
51+
security-events: none
5252
env:
5353
# 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)
5454
# Scripts must consume the environment variable settings instead

.github/workflows/backport-trigger.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
# https://docs.opensource.microsoft.com/github/apps/permission-changes/
1414
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
1515
permissions:
16-
actions: write
16+
actions: none
1717
contents: read
18-
security-events: write
18+
security-events: none
1919
if: github.event.issue.pull_request != '' && startswith(github.event.comment.body, '@gitbot backport')
2020
outputs:
2121
target_branch: ${{ steps.parse_comment.outputs.target_branch }}

0 commit comments

Comments
 (0)