Skip to content

Commit 58cc443

Browse files
Require a personal access token to merge
1 parent ff88520 commit 58cc443

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/callable-qa.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Q&A
33
on:
44
workflow_call:
55
inputs:
6+
token:
7+
required: true
8+
type: string
69
branch:
710
default: main
811
required: false
@@ -49,7 +52,7 @@ jobs:
4952
name: Remove non-patched packages
5053
if: "always() && steps.checkout.outcome == 'success'"
5154
run: |
52-
.github/recipes-checker-main/run list-unpatched-packages $GITHUB_EVENT_PATH ${{ secrets.GITHUB_TOKEN }} | xargs -r -n10 rm -rf
55+
.github/recipes-checker-main/run list-unpatched-packages $GITHUB_EVENT_PATH ${{ inputs.token }} | xargs -r -n10 rm -rf
5356
5457
-
5558
name: Generate Flex testing endpoint
@@ -73,7 +76,7 @@ jobs:
7376
if: "always() && steps.checkout.outcome == 'success'"
7477
run: gh pr merge --auto --squash ${{ github.event.number }}
7578
env:
76-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
GITHUB_TOKEN: ${{ inputs.token }}
7780

7881
-
7982
name: Compute diff between recipe versions
@@ -177,7 +180,7 @@ jobs:
177180
name: Contribution is under MIT and has no merge commits
178181
if: "always() && steps.checkout.outcome == 'success'"
179182
run: |
180-
.github/recipes-checker-main/run lint:pull-request --license=MIT $GITHUB_EVENT_PATH ${{ secrets.GITHUB_TOKEN }}
183+
.github/recipes-checker-main/run lint:pull-request --license=MIT $GITHUB_EVENT_PATH ${{ inputs.token }}
181184
182185
-
183186
name: Parameters should be defined via the "container" configurator

.github/workflows/qa.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,5 @@ defaults:
1010
jobs:
1111
call-qa:
1212
uses: symfony/recipes/.github/workflows/callable-qa.yml@main
13+
with:
14+
token: ${{ secrets.BOT_TOKEN }}

0 commit comments

Comments
 (0)