From 6341125c2f11265a9f08ea067ddacc9e4f508a38 Mon Sep 17 00:00:00 2001 From: "Charlotte St. John" Date: Thu, 25 Jun 2026 18:24:06 -0500 Subject: [PATCH] ci: migrate runs-on to Twilio runner labels + SHA-pin actions --- .github/workflows/pr-lint.yml | 4 ++-- .github/workflows/test-and-deploy.yml | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 2f5232b08..ddd8d04ae 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -6,9 +6,9 @@ on: jobs: validate: name: Validate title - runs-on: ubuntu-latest + runs-on: ubuntu-latest-large steps: - - uses: amannn/action-semantic-pull-request@v4 + - uses: amannn/action-semantic-pull-request@505e44b4f33b4c801f063838b3f053990ee46ea7 # v4 with: types: chore docs fix feat test misc env: diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index df6791aa8..8cfb44c35 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -13,7 +13,7 @@ on: jobs: test: name: Test - runs-on: ubuntu-latest + runs-on: ubuntu-latest-large timeout-minutes: 20 strategy: matrix: @@ -23,11 +23,11 @@ jobs: DOCKER_LOGIN: ${{ secrets.DOCKER_USERNAME && secrets.DOCKER_AUTH_TOKEN }} steps: - name: Checkout sendgrid-nodejs - uses: actions/checkout@v2 + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 - name: Login to Docker Hub if: env.DOCKER_LOGIN - uses: docker/login-action@v1 + uses: docker/login-action@dd4fa0671be5250ee6f50aedf4cb05514abda2c7 # v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_AUTH_TOKEN }} @@ -44,20 +44,20 @@ jobs: name: Deploy if: success() && github.ref_type == 'tag' needs: [ test ] - runs-on: ubuntu-latest + runs-on: ubuntu-latest-large steps: - name: Checkout sendgrid-nodejs - uses: actions/checkout@v2 + uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2 with: fetch-depth: 0 - name: Set up Node - uses: actions/setup-node@v2 + uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # v2 with: node-version: 16 - name: Create GitHub Release - uses: sendgrid/dx-automator/actions/release@main + uses: sendgrid/dx-automator/actions/release@08b601b726671445abc798ed59881766ec8fefc6 # main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -70,7 +70,7 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Submit metric to Datadog - uses: sendgrid/dx-automator/actions/datadog-release-metric@main + uses: sendgrid/dx-automator/actions/datadog-release-metric@08b601b726671445abc798ed59881766ec8fefc6 # main env: DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} @@ -78,9 +78,9 @@ jobs: name: Slack notify on failure if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') needs: [ test, deploy ] - runs-on: ubuntu-latest + runs-on: ubuntu-latest-large steps: - - uses: rtCamp/action-slack-notify@v2 + - uses: rtCamp/action-slack-notify@33ca3be66c6f378fe1610fd1d5258632dbed5e58 # v2 env: SLACK_COLOR: failure SLACK_ICON_EMOJI: ':github:'