Skip to content

Commit 06e41c4

Browse files
committed
Update GitHub Actions workflow to use a variable for GitHub token
1 parent bf94e77 commit 06e41c4

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

struct_module/contribs/github/workflows/run-struct.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,16 @@ structure:
1313
struct_file: 'file://.struct.yaml'
1414
output_dir: '.'
1515
secrets:
16-
token: ${{ secrets.STRUCT_RUN_TOKEN }}
16+
token: {{@ github_token @}}
1717
- .struct.yaml:
1818
content: |
1919
structure:
2020
- README.md:
2121
content: |
2222
# Sample content
23+
24+
variables:
25+
- github_token:
26+
type: string
27+
description: 'GitHub token'
28+
default: "${{ secrets.STRUCT_RUN_TOKEN }}"

0 commit comments

Comments
 (0)