Skip to content

Commit 7a166d9

Browse files
ci: migrate runs-on to Twilio runner labels + SHA-pin actions
1 parent 02b6a2a commit 7a166d9

2 files changed

Lines changed: 13 additions & 13 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: 11 additions & 11 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:
@@ -27,19 +27,19 @@ jobs:
2727
if: ${{ matrix.ruby == 'jruby-9.2' }}
2828

2929
- name: Checkout sendgrid-ruby
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
3131
with:
3232
fetch-depth: 0
3333

3434
- name: Login to Docker Hub
3535
if: env.DOCKER_LOGIN
36-
uses: docker/login-action@v1
36+
uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # v1
3737
with:
3838
username: ${{ secrets.DOCKER_USERNAME }}
3939
password: ${{ secrets.DOCKER_AUTH_TOKEN }}
4040

4141
- name: Set up Ruby
42-
uses: ruby/setup-ruby@v1
42+
uses: ruby/setup-ruby@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1
4343
with:
4444
ruby-version: ${{ matrix.ruby }}
4545
bundler-cache: true
@@ -63,23 +63,23 @@ jobs:
6363
name: Deploy
6464
if: success() && github.ref_type == 'tag'
6565
needs: [ test ]
66-
runs-on: ubuntu-latest
66+
runs-on: ubuntu-latest-large
6767
steps:
6868
- name: Checkout sendgrid-ruby
69-
uses: actions/checkout@v2
69+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
7070
with:
7171
fetch-depth: 0
7272

7373
- name: Set up Ruby
74-
uses: ruby/setup-ruby@v1
74+
uses: ruby/setup-ruby@9eb537ca036ebaed86729dcb9309076e4c5c3b74 # v1
7575
with:
7676
ruby-version: 3.1
7777
bundler-cache: true
7878

7979
- run: make install
8080

8181
- name: Create GitHub Release
82-
uses: sendgrid/dx-automator/actions/release@main
82+
uses: sendgrid/dx-automator/actions/release@08b601b726671445abc798ed59881766ec8fefc6 # main
8383
with:
8484
footer: '**[RubyGems](https://rubygems.org/gems/sendgrid-ruby/versions/${version})**'
8585
env:
@@ -97,17 +97,17 @@ jobs:
9797
gem push *.gem
9898
9999
- name: Submit metric to Datadog
100-
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
100+
uses: sendgrid/dx-automator/actions/datadog-release-metric@08b601b726671445abc798ed59881766ec8fefc6 # main
101101
env:
102102
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
103103

104104
notify-on-failure:
105105
name: Slack notify on failure
106106
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
107107
needs: [ test, deploy ]
108-
runs-on: ubuntu-latest
108+
runs-on: ubuntu-latest-large
109109
steps:
110-
- uses: rtCamp/action-slack-notify@v2
110+
- uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2
111111
env:
112112
SLACK_COLOR: failure
113113
SLACK_ICON_EMOJI: ':github:'

0 commit comments

Comments
 (0)