Skip to content

Commit c3ccd6a

Browse files
committed
pass token with secrets env
1 parent a7df713 commit c3ccd6a

3 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/build-rc-auto.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ jobs:
8686
if: needs.validate-and-check-label.outputs.has-label == 'true'
8787
with:
8888
base-branch: ${{ github.ref_name }}
89-
token: ${{ secrets.PR_TOKEN }}
89+
secrets:
90+
PR_TOKEN: ${{ secrets.PR_TOKEN }}
9091
permissions:
9192
id-token: write
9293
contents: write

.github/workflows/build-rc-create.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
uses: ./.github/workflows/update-latest-build-version.yml
1919
with:
2020
base-branch: release/${{ inputs.semver }}
21-
token: ${{ secrets.PR_TOKEN }}
21+
secrets:
22+
PR_TOKEN: ${{ secrets.PR_TOKEN }}
2223
permissions:
2324
id-token: write
2425
contents: write

.github/workflows/update-latest-build-version.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ on:
2020
description: 'The base branch, tag, or SHA for git operations and the pull request.'
2121
required: true
2222
type: string
23-
token:
23+
secrets:
24+
PR_TOKEN:
2425
description: 'GitHub token for checkout and push operations.'
2526
required: true
26-
type: string
2727
outputs:
2828
build-version:
2929
description: 'Generated build version number'
@@ -47,7 +47,7 @@ jobs:
4747
with:
4848
fetch-depth: 0
4949
ref: ${{ inputs.base-branch }}
50-
token: ${{ inputs.token || secrets.PR_TOKEN }}
50+
token: ${{ secrets.PR_TOKEN || github.token }}
5151
- name: Bump build version
5252
id: bump-build-version
5353
shell: bash

0 commit comments

Comments
 (0)