Skip to content

Commit 0f40d4b

Browse files
author
LE SAULNIER Kevin
committed
fix: add token masking
Signed-off-by: LE SAULNIER Kevin <[email protected]>
1 parent 68e5231 commit 0f40d4b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/dispatch-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ jobs:
2727
submodules: false
2828
ref: release-workflow
2929

30+
- name: Mask Node Auth Token
31+
run: |
32+
GH_TOKEN=$(jq -r '.inputs.pat-token' $GITHUB_EVENT_PATH)
33+
echo ::add-mask::$GH_TOKEN
34+
echo "GH_TOKEN=$GH_TOKEN" >> $GITHUB_ENV
35+
36+
3037
- name: Load repo list from file or input
3138
id: load_repos
3239
run: |
@@ -58,4 +65,4 @@ jobs:
5865
5966
done <<< "${{ steps.load_repos.outputs.list }}"
6067
env:
61-
GH_TOKEN: ${{ github.event.inputs.pat-token }}
68+
GH_TOKEN: ${{ env.GH_TOKEN }}

0 commit comments

Comments
 (0)