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
25 changes: 25 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: 2

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

# Version updates are off for Composer packages: only security updates are proposed.
- package-ecosystem: composer
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 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 @@ -105,7 +105,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
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,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 @@ -193,7 +193,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
6 changes: 3 additions & 3 deletions .github/workflows/run_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
runs-on: { group: github-public-amd64 }
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.1'
extensions: curl, json
tools: composer:v2

- name: Cache composer dependencies
uses: actions/cache@v4
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: vendor
key: composer-8.1-${{ hashFiles('composer.lock') }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ jobs:
php-version: ['8.1', '8.2', '8.3']

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: ${{ matrix.php-version }}
extensions: curl, json
tools: composer:v2

- name: Cache composer dependencies
uses: actions/cache@v4
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: vendor
key: composer-${{ matrix.php-version }}-${{ hashFiles('composer.lock') }}
Expand All @@ -58,12 +58,12 @@ jobs:
timeout-minutes: 20

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Setup PHP
uses: shivammathur/setup-php@v2
uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0
with:
php-version: '8.3'
extensions: curl, json
Expand Down