Skip to content

Commit 87fedef

Browse files
Add content: write rights for backporting job (#7826)
* Do not run primers tests on backporting branches * Add content: write rights for backporting job We need it to push to the backporting branch after cherry-picking See https://github.com/PyCQA/pylint/pull/7810\#issuecomment-1324742960 * [github actions] Add a version comment so the tag is clearer Co-authored-by: Marc Mueller <[email protected]>
1 parent f7d681b commit 87fedef

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.github/workflows/backport.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
permissions:
99
pull-requests: write
10+
content: write
1011

1112
jobs:
1213
backport:
@@ -23,6 +24,6 @@ jobs:
2324
)
2425
)
2526
steps:
26-
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac
27+
- uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac # v2.0.3
2728
with:
2829
github_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/primer-test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ on:
44
push:
55
branches:
66
- main
7-
- "maintenance/**"
87
pull_request:
98
paths:
109
- "pylint/**"
1110
- "tests/primer/**"
1211
- "requirements*"
1312
- ".github/workflows/primer-test.yaml"
14-
13+
branches:
14+
- main
1515
env:
1616
CACHE_VERSION: 1
1717
KEY_PREFIX: venv

.github/workflows/primer_run_pr.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ on:
1616
- "!.github/workflows/primer_run_main.yaml"
1717
- "!.github/workflows/primer_comment.yaml"
1818
- "!tests/primer/packages_to_prime.json"
19+
branches:
20+
- main
1921

2022
concurrency:
2123
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

0 commit comments

Comments
 (0)