Skip to content

Commit 0950f22

Browse files
committed
secrets cannot be templated in a shared action
1 parent 563ba5a commit 0950f22

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/actions/setup/directories/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ inputs:
3636
description: >-
3737
If set to true, creates dummy files in build dir.
3838
39+
token:
40+
required: false
41+
default: ''
42+
description: >-
43+
A GitHub token to checkout the repository
44+
3945
outputs: {} # nothing?
4046

4147
runs:
@@ -70,7 +76,7 @@ runs:
7076
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
7177
with:
7278
path: ${{ inputs.srcdir }}
73-
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
79+
token: ${{ inputs.token }}
7480

7581
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
7682
with:

.github/workflows/check_misc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- uses: ./.github/actions/setup/directories
2424
with:
2525
makeup: true
26+
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
2627

2728
- name: Check if C-sources are US-ASCII
2829
run: |

0 commit comments

Comments
 (0)