File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 66 - main
77
88permissions :
9- contents : write
9+ id-token : write
1010
1111concurrency :
1212 group : template-cleanup-${{github.ref}}
2323 runs-on : ubuntu-latest
2424 timeout-minutes : 15
2525 steps :
26+ - name : Get GitHub Token
27+ id : get-token
28+ uses : remal/github-repository-token-issuer@v1
29+ with :
30+ scopes : |
31+ contents: write
32+ workflows: write
33+
2634 - name : Checkout repository
2735 uses : actions/checkout@v6
36+ with :
37+ token : ${{steps.get-token.outputs.token}}
2838
2939 - name : Cleanup
3040 run : |
4959 if : ${{github.event_name == 'push' && startsWith(github.ref, 'refs/heads/')}}
5060 uses : remal-github-actions/push-back@v2
5161 with :
52- githubToken : ${{secrets.PUSH_BACK_TOKEN || github.token}}
5362 message : ' Template cleanup'
5463
5564 - name : Fail if the repository was changed before pushing back
You can’t perform that action at this time.
0 commit comments