Skip to content

Commit 3f24de7

Browse files
ci: migrate runs-on to Twilio runner labels + SHA-pin actions
1 parent 264d4c7 commit 3f24de7

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/pr-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ on:
66
jobs:
77
validate:
88
name: Validate title
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-latest-large
1010
steps:
11-
- uses: amannn/action-semantic-pull-request@v4
11+
- uses: amannn/action-semantic-pull-request@505e44b4f33b4c801f063838b3f053990ee46ea7 # v4
1212
with:
1313
types: chore docs fix feat test misc
1414
env:

.github/workflows/test-and-deploy.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
jobs:
1414
test:
1515
name: Test
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-latest-large
1717
timeout-minutes: 20
1818
strategy:
1919
matrix:
@@ -23,10 +23,10 @@ jobs:
2323
- "highest"
2424
steps:
2525
- name: Checkout php-http-client
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
2727

2828
- name: Setup PHP Action
29-
uses: shivammathur/setup-php@2.15.0
29+
uses: shivammathur/setup-php@4c5c122aa65e90c21a9ddc71071e94ad8b6d33e2 # 2.15.0
3030
with:
3131
php-version: ${{ matrix.php }}
3232
id: php
@@ -48,13 +48,13 @@ jobs:
4848
name: Deploy
4949
if: success() && github.ref_type == 'tag'
5050
needs: [ test ]
51-
runs-on: ubuntu-latest
51+
runs-on: ubuntu-latest-large
5252
steps:
5353
- name: Checkout php-http-client
54-
uses: actions/checkout@v2
54+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
5555

5656
- name: Setup PHP
57-
uses: shivammathur/setup-php@2.15.0
57+
uses: shivammathur/setup-php@4c5c122aa65e90c21a9ddc71071e94ad8b6d33e2 # 2.15.0
5858
with:
5959
php-version: '8.1'
6060
id: php
@@ -63,24 +63,24 @@ jobs:
6363
run: make bundle
6464

6565
- name: Create GitHub Release
66-
uses: sendgrid/dx-automator/actions/release@main
66+
uses: sendgrid/dx-automator/actions/release@08b601b726671445abc798ed59881766ec8fefc6 # main
6767
with:
6868
assets: php-http-client.zip
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171

7272
- name: Submit metric to Datadog
73-
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
73+
uses: sendgrid/dx-automator/actions/datadog-release-metric@08b601b726671445abc798ed59881766ec8fefc6 # main
7474
env:
7575
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
7676

7777
notify-on-failure:
7878
name: Slack notify on failure
7979
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
8080
needs: [ test, deploy ]
81-
runs-on: ubuntu-latest
81+
runs-on: ubuntu-latest-large
8282
steps:
83-
- uses: rtCamp/action-slack-notify@v2
83+
- uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2
8484
env:
8585
SLACK_COLOR: failure
8686
SLACK_ICON_EMOJI: ':github:'

0 commit comments

Comments
 (0)