Skip to content

Commit ce7fd1e

Browse files
ci: migrate runs-on to Twilio runner labels + SHA-pin actions
1 parent 1eedced commit ce7fd1e

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,19 +13,19 @@ 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:
2020
ruby: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.1' ]
2121
steps:
2222
- name: Checkout ruby-http-client
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
2424
with:
2525
fetch-depth: 0
2626

2727
- name: Set up Ruby
28-
uses: ruby/setup-ruby@v1
28+
uses: ruby/setup-ruby@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1
2929
with:
3030
ruby-version: ${{ matrix.ruby }}
3131
bundler-cache: true
@@ -49,23 +49,23 @@ jobs:
4949
name: Deploy
5050
if: success() && github.ref_type == 'tag'
5151
needs: [ test ]
52-
runs-on: ubuntu-latest
52+
runs-on: ubuntu-latest-large
5353
steps:
5454
- name: Checkout ruby-http-client
55-
uses: actions/checkout@v2
55+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
5656
with:
5757
fetch-depth: 0
5858

5959
- name: Set up Ruby
60-
uses: ruby/setup-ruby@v1
60+
uses: ruby/setup-ruby@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1
6161
with:
6262
ruby-version: 3.1
6363
bundler-cache: true
6464

6565
- run: make install
6666

6767
- name: Create GitHub Release
68-
uses: sendgrid/dx-automator/actions/release@main
68+
uses: sendgrid/dx-automator/actions/release@08b601b726671445abc798ed59881766ec8fefc6 # main
6969
env:
7070
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7171

@@ -81,17 +81,17 @@ jobs:
8181
gem push *.gem
8282
8383
- name: Submit metric to Datadog
84-
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
84+
uses: sendgrid/dx-automator/actions/datadog-release-metric@08b601b726671445abc798ed59881766ec8fefc6 # main
8585
env:
8686
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
8787

8888
notify-on-failure:
8989
name: Slack notify on failure
9090
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
9191
needs: [ test, deploy ]
92-
runs-on: ubuntu-latest
92+
runs-on: ubuntu-latest-large
9393
steps:
94-
- uses: rtCamp/action-slack-notify@v2
94+
- uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2
9595
env:
9696
SLACK_COLOR: failure
9797
SLACK_ICON_EMOJI: ':github:'

0 commit comments

Comments
 (0)