Skip to content

Commit 54702a6

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

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
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

.github/workflows/rebase-dependabot-pull-requests.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ on:
1212
workflow_dispatch: { }
1313

1414
permissions:
15-
pull-requests: write
16-
issues: write
17-
contents: read
15+
id-token: write
1816

1917
concurrency:
2018
group: rebase-dependabot-pull-requests-${{github.ref}}
@@ -30,5 +28,16 @@ jobs:
3028
runs-on: ubuntu-latest
3129
timeout-minutes: 15
3230
steps:
31+
- name: Get GitHub Token
32+
id: get-token
33+
uses: remal/github-repository-token-issuer@v1
34+
with:
35+
scopes: |
36+
pull_requests: write
37+
issues: write
38+
contents: read
39+
3340
- name: Rebase Dependabot pull requests
3441
uses: remal-github-actions/rebase-dependabot-pull-requests@v1
42+
with:
43+
githubToken: ${{steps.get-token.outputs.token}}

.mergify/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pull_request_rules:
2525

2626
- name: Sync with template
2727
conditions:
28+
- 'author~=^(remal|repository-token-issuer\[bot\])$'
2829
- 'author=remal'
2930
- 'label=sync-with-template'
3031
- '#added-files=0'

0 commit comments

Comments
 (0)