1010 Backport :
1111 environment :
1212 name : PR Backport
13+ deployment : false
1314 runs-on : ubuntu-slim
1415 if : github.event.pull_request.merged && contains( github.event.pull_request.labels.*.name, 'backport' )
1516 permissions :
2122
2223 steps :
2324 - name : Create App Token
24- uses : actions/create-github-app-token@v3
25+ uses : actions/create-github-app-token@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.0
2526 id : app-token
2627 with :
2728 app-id : ${{ vars.APP_ID }}
3940 git config --global user.email '${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com'
4041
4142 - name : Checkout PR HEAD
42- uses : actions/checkout@v6
43+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4344 with :
4445 ref : ${{ github.event.pull_request.head.sha }}
4546 fetch-depth : 100
6061
6162 - name : Create backport PR
6263 id : create-pr
63- uses : peter-evans/create-pull-request@v8
64+ uses : peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
6465 with :
6566 token : ${{ steps.app-token.outputs.token }}
6667 title : ' ${{ github.event.pull_request.title }} (backport)'
@@ -72,13 +73,13 @@ jobs:
7273 delete-branch : true
7374 labels : ' backported-pr,${{ join(github.event.pull_request.labels.*.name) }}'
7475
75- - uses : actions-ecosystem/action-remove-labels@v1
76+ - uses : actions-ecosystem/action-remove-labels@2ce5d41b4b6aa8503e285553f75ed56e0a40bae0 # v1.3.0
7677 with :
7778 number : ${{ steps.create-pr.outputs.pull-request-number }}
7879 labels : backport
7980
8081 - name : Comment on completion
81- uses : actions/github-script@v8
82+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
8283 with :
8384 script : |
8485 github.rest.issues.createComment({
9091
9192 - name : Comment on error
9293 if : failure()
93- uses : actions/github-script@v8
94+ uses : actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
9495 with :
9596 script : |
9697 const workflow_url = `${process.env.GITHUB_SERVER_URL}/${process.env.GITHUB_REPOSITORY}/actions/runs/${process.env.GITHUB_RUN_ID}`;
0 commit comments