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
53 changes: 41 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,51 @@ name: CI Workflow

on: [pull_request, workflow_dispatch]

permissions: {}

env:
GO_VERSION_BUILD: "1.25"
JAVA_VERSION: "25"

jobs:
zizmor:
name: zizmor
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
with:
advanced-security: false # Fail the job on findings instead of uploading SARIF.
annotations: true

main-go:
name: CI [Go]
permissions:
contents: read
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go-version: ["1.25", "1.26"]
go-version: ["1.26", "1.27"]
runs-on: ${{ matrix.os }}
steps:
- name: Install Java
uses: actions/setup-java@v4
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

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

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ matrix.go-version }}

Expand All @@ -43,28 +64,32 @@ jobs:

main-python:
name: CI [Python]
permissions:
contents: read
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13", "3.14", "3.15"]
runs-on: ${{ matrix.os }}
steps:
- name: Install Java
uses: actions/setup-java@v4
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ env.GO_VERSION_BUILD }}

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

- name: install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
version: "0.13.7"

Expand All @@ -85,7 +110,7 @@ jobs:
run: make generate-python-sdk

- name: install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
version: "0.13.7"
python-version: ${{ matrix.python-version }}
Expand All @@ -104,24 +129,28 @@ jobs:

main-java:
name: CI [Java]
permissions:
contents: read
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ["17", "21", "25"]
steps:
- name: Install Java
uses: actions/setup-java@v4
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: "temurin"
java-version: ${{ matrix.java-version }}

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ env.GO_VERSION_BUILD }}

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Download OAS
run: make download-oas
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/renovate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,21 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions: {}

jobs:
renovate:
name: Renovate
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Self-hosted Renovate
uses: renovatebot/github-action@v43.0.17
uses: renovatebot/github-action@acdd6bda8b035c99ce59d5675816af2aa65a1774 # v46.3.14
with:
configurationFile: .github/renovate.json
token: ${{ secrets.SDK_PR_TOKEN }}
46 changes: 27 additions & 19 deletions .github/workflows/sdk-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,35 @@ env:
GO_VERSION: "1.25"
JAVA_VERSION: "25"

permissions: {}

jobs:
main-go:
name: "[Go] Update SDK Repo"
runs-on: ubuntu-latest
# Publishing uses the SSH key and SDK_PR_TOKEN.
permissions:
pull-requests: write
contents: write
contents: read
steps:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
uses: shimataro/ssh-key-action@87a8f067114a8ce263df83e9ed5c849953548bc3 # v2.8.1
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}

- name: Install Java
uses: actions/setup-java@v4
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

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

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ env.GO_VERSION }}

Expand All @@ -60,29 +64,31 @@ jobs:
main-python:
name: "[Python] Update SDK Repo"
runs-on: ubuntu-latest
# Publishing uses the SSH key and SDK_PR_TOKEN.
permissions:
pull-requests: write
contents: write
contents: read
steps:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
uses: shimataro/ssh-key-action@87a8f067114a8ce263df83e9ed5c849953548bc3 # v2.8.1
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}

- name: Install Java
uses: actions/setup-java@v4
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ env.GO_VERSION }}

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

- name: Install project tools and dependencies
shell: bash
Expand All @@ -93,7 +99,7 @@ jobs:
make project-tools LANGUAGE=python

- name: install uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
with:
version: "0.13.7"

Expand All @@ -116,29 +122,31 @@ jobs:
main-java:
name: "[Java] Update SDK Repo"
runs-on: ubuntu-latest
# Publishing uses the SSH key and SDK_PR_TOKEN.
permissions:
pull-requests: write
contents: write
contents: read
steps:
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
uses: shimataro/ssh-key-action@87a8f067114a8ce263df83e9ed5c849953548bc3 # v2.8.1
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: ${{ vars.SSH_KNOWN_HOSTS }}

- name: Install Go
uses: actions/setup-go@v5
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: ${{ env.GO_VERSION }}

- name: Install Java
uses: actions/setup-java@v4
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: "temurin"
java-version: ${{ env.JAVA_VERSION }}

- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- name: Download OAS
run: make download-oas
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/stale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ env:
DAYS_BEFORE_PR_CLOSE: 14
EXEMPT_PR_LABELS: "ignore-stale"

permissions:
issues: write
pull-requests: write
permissions: {}

jobs:
stale:
name: "Stale"
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
steps:
- name: "Mark old PRs as stale"
uses: actions/stale@v9
uses: actions/stale@4391f3da665fdf50b6810c1a66712fb9ba21aa93 # v11.0.0
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-pr-message: "This PR was marked as stale after ${{ env.DAYS_BEFORE_PR_STALE }} days of inactivity and will be closed after another ${{ env.DAYS_BEFORE_PR_CLOSE }} days of further inactivity. If this PR should be kept open, just add a comment, remove the stale label or push new commits to it."
Expand Down
Loading