|
21 | 21 | github.event.pull_request.state == 'open' && !github.event.pull_request.draft |
22 | 22 | steps: |
23 | 23 | - name: 'Apply default "backport: auto" label' |
24 | | - uses: actions/github-script@v4 |
| 24 | + uses: actions/github-script@10b53a9ec6c222bb4ce97aa6bd2b5f739696b536 # v4 |
25 | 25 | if: | |
26 | 26 | !contains(github.event.pull_request.labels.*.name, 'backport: auto') && |
27 | 27 | !contains(github.event.pull_request.labels.*.name, 'backport: skip') |
|
34 | 34 | labels: ['backport: auto'] |
35 | 35 | }) |
36 | 36 | - name: 'Remove "backport: auto" if "backport: skip" is set' |
37 | | - uses: actions/github-script@v4 |
| 37 | + uses: actions/github-script@10b53a9ec6c222bb4ce97aa6bd2b5f739696b536 # v4 |
38 | 38 | if: | |
39 | 39 | contains(github.event.pull_request.labels.*.name, 'backport: auto') && |
40 | 40 | contains(github.event.pull_request.labels.*.name, 'backport: skip') |
|
65 | 65 |
|
66 | 66 | steps: |
67 | 67 | - name: Checkout repo |
68 | | - uses: actions/checkout@v4 |
| 68 | + uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4 |
69 | 69 | with: |
70 | 70 | token: ${{ secrets.WRITE_TRADEBOT_DETECTION_RULES_TOKEN }} |
71 | 71 | ref: main |
|
91 | 91 | git reset --soft HEAD^ |
92 | 92 |
|
93 | 93 | - name: Setup Python 3.12 |
94 | | - uses: actions/setup-python@v5 |
| 94 | + uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 |
95 | 95 | with: |
96 | 96 | python-version: '3.12' |
97 | 97 |
|
@@ -159,7 +159,7 @@ jobs: |
159 | 159 | git push |
160 | 160 |
|
161 | 161 | - name: "Notify slack on failure" |
162 | | - uses: craftech-io/slack-action@v1 |
| 162 | + uses: craftech-io/slack-action@fb1d4e50375d7758efb90fa0564734bae931f84f # v1 |
163 | 163 | with: |
164 | 164 | slack_webhook_url: ${{ secrets.EXTERNAL_SLACK_DETECTION_RULES_URL }} |
165 | 165 | status: failure |
|
0 commit comments