Skip to content

Commit 7ba147b

Browse files
Fix usage of secrets in callable-qa workflow
1 parent 58cc443 commit 7ba147b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/callable-qa.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Q&A
33
on:
44
workflow_call:
55
inputs:
6-
token:
7-
required: true
8-
type: string
96
branch:
107
default: main
118
required: false
@@ -16,6 +13,9 @@ on:
1613
find_yaml:
1714
required: false
1815
type: string
16+
secrets:
17+
token:
18+
required: true
1919

2020
jobs:
2121
run-checks:
@@ -52,7 +52,7 @@ jobs:
5252
name: Remove non-patched packages
5353
if: "always() && steps.checkout.outcome == 'success'"
5454
run: |
55-
.github/recipes-checker-main/run list-unpatched-packages $GITHUB_EVENT_PATH ${{ inputs.token }} | xargs -r -n10 rm -rf
55+
.github/recipes-checker-main/run list-unpatched-packages $GITHUB_EVENT_PATH ${{ secrets.token }} | xargs -r -n10 rm -rf
5656
5757
-
5858
name: Generate Flex testing endpoint
@@ -76,7 +76,7 @@ jobs:
7676
if: "always() && steps.checkout.outcome == 'success'"
7777
run: gh pr merge --auto --squash ${{ github.event.number }}
7878
env:
79-
GITHUB_TOKEN: ${{ inputs.token }}
79+
GITHUB_TOKEN: ${{ secrets.token }}
8080

8181
-
8282
name: Compute diff between recipe versions
@@ -180,7 +180,7 @@ jobs:
180180
name: Contribution is under MIT and has no merge commits
181181
if: "always() && steps.checkout.outcome == 'success'"
182182
run: |
183-
.github/recipes-checker-main/run lint:pull-request --license=MIT $GITHUB_EVENT_PATH ${{ inputs.token }}
183+
.github/recipes-checker-main/run lint:pull-request --license=MIT $GITHUB_EVENT_PATH ${{ secrets.token }}
184184
185185
-
186186
name: Parameters should be defined via the "container" configurator

.github/workflows/qa.yml

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

0 commit comments

Comments
 (0)