Skip to content

Commit 94b230a

Browse files
ci: migrate runs-on to Twilio runner labels + SHA-pin actions
1 parent 8ab1723 commit 94b230a

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
1414
env:

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ 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
python-version: [ '2.7', '3.5', '3.6', '3.7', '3.8', '3.9', '3.10' ]
2121
steps:
2222
- name: Checkout sendgrid-python-http-client
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
2424

2525
- name: Set up Python
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929

@@ -33,13 +33,13 @@ jobs:
3333
name: Deploy
3434
if: success() && github.ref_type == 'tag'
3535
needs: [ test ]
36-
runs-on: ubuntu-latest
36+
runs-on: ubuntu-latest-large
3737
steps:
3838
- name: Checkout sendgrid-python-http-client
39-
uses: actions/checkout@v2
39+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2
4040

4141
- name: Set up Python
42-
uses: actions/setup-python@v2
42+
uses: actions/setup-python@e9aba2c848f5ebd159c070c61ea2c4e2b122355e # v2
4343
with:
4444
python-version: '3.10'
4545

@@ -51,23 +51,23 @@ jobs:
5151
python setup.py sdist bdist_wheel
5252
5353
- name: Publish package to PyPI
54-
uses: pypa/gh-action-pypi-publish@release/v1
54+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # release/v1
5555
with:
5656
user: __token__
5757
password: ${{ secrets.PYPI_TOKEN }}
5858

5959
- name: Submit metric to Datadog
60-
uses: sendgrid/dx-automator/actions/datadog-release-metric@main
60+
uses: sendgrid/dx-automator/actions/datadog-release-metric@08b601b726671445abc798ed59881766ec8fefc6 # main
6161
env:
6262
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }}
6363

6464
notify-on-failure:
6565
name: Slack notify on failure
6666
if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag')
6767
needs: [ test, deploy ]
68-
runs-on: ubuntu-latest
68+
runs-on: ubuntu-latest-large
6969
steps:
70-
- uses: rtCamp/action-slack-notify@v2
70+
- uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2
7171
env:
7272
SLACK_COLOR: failure
7373
SLACK_ICON_EMOJI: ':github:'

0 commit comments

Comments
 (0)