1616 runs-on: ubuntu-latest
1717 steps:
1818 - name: Parse PR label and title
19- uses: actions/github-script@v6
19+ uses: actions/github-script@v7
2020 id: lint_title_adr
2121 with:
2222 result-encoding: json
5656 echo ${{ fromJSON(steps.lint_title_adr.outputs.result).message }}
5757 exit 1
5858 - if: always() && (fromJSON(steps.lint_title_adr.outputs.result).status == 'ko')
59- uses: marocchino/sticky-pull-request-comment@v2
59+ uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
6060 # When the previous steps fails, the workflow would stop. By adding this
6161 # condition you can continue the execution with the populated error message.
6262 with:
@@ -70,19 +70,19 @@ jobs:
7070 ```
7171 # Delete a previous comment when the issue has been resolved
7272 - if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
73- uses: marocchino/sticky-pull-request-comment@v2
73+ uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
7474 with:
7575 GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
7676 header: pr-title-lint-adr-error
7777 delete: true
7878 - if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
7979 name: Get all changed files
8080 id: changed_files_all
81- uses: tj-actions/changed-files@v41
81+ uses: tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # using https://github.com/tj-actions/changed-files/releases/tag/v40
8282 - if: (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
8383 name: Get files that should be changed
8484 id: changed_files_only
85- uses: tj-actions/changed-files@v41
85+ uses: tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # using https://github.com/tj-actions/changed-files/releases/tag/v40
8686 with:
8787 files: |
8888 ${{ fromJSON(steps.lint_title_adr.outputs.result).expectedFileMatch }}
9999 fi
100100 - if: always() && steps.changed_files_check.outputs.only_adr == 0 && (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
101101 name: Comment files changed
102- uses: marocchino/sticky-pull-request-comment@v2
102+ uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
103103 # When the previous steps fails, the workflow would stop. By adding this
104104 # condition you can continue the execution with the populated error message.
105105 with:
@@ -115,7 +115,7 @@ jobs:
115115 # Delete a previous comment when the issue has been resolved
116116 - if: steps.changed_files_check.outputs.only_adr == 1 && (fromJSON(steps.lint_title_adr.outputs.result).status == 'ok')
117117 name: Delete comment fail changed
118- uses: marocchino/sticky-pull-request-comment@v2
118+ uses: marocchino/sticky-pull-request-comment@52423e01640425a022ef5fd42c6fb5f633a02728 #https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.9.1
119119 with:
120120 GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
121121 header: pr-files-changed-adr-error
0 commit comments