Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
version: 2

updates:
- package-ecosystem: github-actions
directories:
- /
- /.github/actions/*
schedule:
interval: weekly
cooldown:
default-days: 4
groups:
github-actions:
patterns: ["*"]
commit-message:
prefix: chore
include: scope

# Version updates are off for Ruby gems: only security updates are proposed.
- package-ecosystem: bundler
directory: /
schedule:
interval: weekly
open-pull-requests-limit: 0
commit-message:
prefix: chore
include: scope
2 changes: 1 addition & 1 deletion .github/workflows/breaking_changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
echo "::error::$new brings approved breaking changes (${added//$'\n'/, }). Add '!' to the PR title to release a major, or label the PR sdk-not-breaking and name each ticket in the PR body if none of them breaks this SDK. $hold"
exit 1
# A hand-written change never moves .spec-version, and a regen can break callers in ways chat's check allows, so the public methods and classes themselves are compared too, between the base tip and the merge commit.
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
if: ${{ !cancelled() }}
with:
fetch-depth: 2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ jobs:
name: 🧪 Tests
needs: [release-only, unit]
if: ${{ !cancelled() }}
runs-on: { group: github-public-amd64 }
runs-on: ubuntu-26.04
timeout-minutes: 5
steps:
- name: Check the unit lane
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/dependency_review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Dependency Review

on:
pull_request:

permissions:
contents: read

jobs:
dependency-review:
name: Dependency Review
runs-on:
group: github-public-amd64
timeout-minutes: 5
steps:
- name: Dependency Review
uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1
with:
show-openssf-scorecard: true
warn-on-openssf-scorecard-level: 3
2 changes: 1 addition & 1 deletion .github/workflows/pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ jobs:
name: 👮 Conventional PR title
runs-on: { group: github-public-amd64 }
steps:
- uses: amannn/action-semantic-pull-request@v6
- uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/regen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,21 @@ jobs:
statuses: read
steps:
- id: app
uses: actions/create-github-app-token@v3
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: Iv23lioh9qYGjBIp9nsK
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
# Read-only, for the generator on the chat release and the protocol release list.
- id: read
uses: actions/create-github-app-token@v3
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: Iv23lioh9qYGjBIp9nsK
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
repositories: chat,protocol
permission-contents: read
- uses: actions/checkout@v5.0.1
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# The branch tip, not the commit of the event: a run queued behind another one must see the regen that one merged.
ref: ${{ github.ref }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ jobs:
steps:
- id: app
if: github.ref_name == github.event.repository.default_branch
uses: actions/create-github-app-token@v3
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: Iv23lioh9qYGjBIp9nsK
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
- uses: googleapis/release-please-action@v4
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
with:
token: ${{ steps.app.outputs.token || github.token }}
config-file: release-please-config.json
Expand Down Expand Up @@ -190,7 +190,7 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- uses: googleapis/release-please-action@v4
- uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1
id: release
with:
config-file: release-please-config.json
Expand Down Expand Up @@ -228,7 +228,7 @@ jobs:
echo "tag=${tag}" >> "$GITHUB_OUTPUT"
echo "version=${tag#v}" >> "$GITHUB_OUTPUT"

- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# refs/tags/ so that a publish_tag naming a branch or a SHA is not checked out.
ref: refs/tags/${{ steps.target.outputs.tag }}
Expand Down Expand Up @@ -266,14 +266,14 @@ jobs:
echo "Tag ${TAG} (${commit}) is on ${GITHUB_REF_NAME}."

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0
with:
# ubuntu-latest only publishes the latest patch of each series, so 3.1.0 404s.
ruby-version: '3.1'

# RubyGems Trusted Publishing: trades the job's OIDC token for a short-lived GEM_HOST_API_KEY.
- name: Configure RubyGems credentials
uses: rubygems/configure-rubygems-credentials@dc5a8d8553e6ee01fc26761a49e99e733d17954a # v2.1.0
uses: rubygems/configure-rubygems-credentials@c6ca7f4bac0e29c9bde8eeae0a0a986b27efa05f # v2.2.0

- name: Build and publish gem
env:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/run_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
environment: ci
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0
with:
ruby-version: '3.1'
bundler-cache: true
Expand All @@ -57,12 +57,12 @@ jobs:
environment: ci
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0
with:
ruby-version: '3.1'
bundler-cache: true
Expand All @@ -81,12 +81,12 @@ jobs:
environment: ci
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0
with:
ruby-version: '3.1'
bundler-cache: true
Expand All @@ -105,12 +105,12 @@ jobs:
environment: ci
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0
with:
ruby-version: '3.1'
bundler-cache: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4 # v1.346.0
with:
# ubuntu-latest only publishes the latest patch of each series, so 3.1.0 404s.
ruby-version: '3.1'
Expand Down