Skip to content

Commit 3019cd7

Browse files
author
remal-github-actions
committed
Template repository changes: remal-github-actions/template-typescript
1 parent 5ce6353 commit 3019cd7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
pull_request: { }
88

9+
permissions:
10+
id-token: write
11+
912
defaults:
1013
run:
1114
shell: bash
@@ -23,10 +26,18 @@ jobs:
2326
runs-on: ubuntu-latest
2427
timeout-minutes: 30
2528
steps:
29+
- name: Get GitHub Token
30+
id: get-token
31+
uses: remal/github-repository-token-issuer@v1
32+
with:
33+
scopes: |
34+
contents: write
35+
workflows: write
36+
2637
- name: Checkout repository
2738
uses: actions/checkout@v6
2839
with:
29-
token: ${{secrets.PUSH_BACK_TOKEN}}
40+
token: ${{steps.get-token.outputs.token}}
3041
submodules: recursive
3142
lfs: true
3243
fetch-depth: 1

0 commit comments

Comments
 (0)