Skip to content

Commit cdcf2c1

Browse files
committed
[TASK] Adjust GH workflow for write permission (#780)
1 parent 596f155 commit cdcf2c1

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/apply-precommit.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
lint:
1010
if: github.repository_owner == 'TYPO3-documentation'
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write # needed to push commit
1214
steps:
1315
- name: Checkout code
1416
uses: actions/checkout@v2
@@ -62,7 +64,7 @@ jobs:
6264

6365
- name: Open Pull Request
6466
if: env.FIX_NEEDED == 'true' && env.EXISTING_PR != 'true'
65-
uses: repo-sync/pull-request@v2
67+
uses: repo-sync/pull-request@7e79a9f5dc3ad0ce53138f01df2fad14a04831c5
6668
with:
6769
source_branch: ${{ env.branch_name }}
6870
destination_branch: ${{ github.ref_name }}

.github/workflows/backport.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@ jobs:
99
backport:
1010
runs-on: ubuntu-latest
1111
name: Backport
12+
permissions:
13+
contents: write # needed to push the backport branch
14+
pull-requests: write # needed to open the PR
1215
steps:
1316
- name: Backport
14-
uses: m-kuhn/backport@v1.2.6
17+
uses: m-kuhn/backport@30b6e83906cc97bad3a02867181d6236becf68f9
1518
with:
1619
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)