Skip to content
Merged
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
17 changes: 14 additions & 3 deletions .github/workflows/release-bump-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,27 @@ on:
type: string

permissions:
contents: write
pull-requests: write
contents: read

jobs:
open-pr:
runs-on: ubuntu-22.04
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ inputs.version }}
steps:
# App-authenticated pushes and PRs let pull_request CI start automatically.
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.BRAINTRUST_BOT_APP_ID }}
private-key: ${{ secrets.BRAINTRUST_BOT_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write

- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0

- name: Validate version
Expand Down Expand Up @@ -101,6 +110,8 @@ jobs:
git push --force-with-lease origin "${BRANCH}"

- name: Open pull request
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
shell: bash
run: |
set -euo pipefail
Expand Down
16 changes: 13 additions & 3 deletions .github/workflows/update-rust-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ on:
default: true

permissions:
contents: write
pull-requests: write
contents: read

concurrency:
group: update-rust-dependencies
Expand All @@ -26,15 +25,25 @@ jobs:
update:
runs-on: ubuntu-24.04
env:
GH_TOKEN: ${{ github.token }}
BRANCH: automation/update-rust-dependencies
UPDATE_RUST_SDK: ${{ inputs.update_rust_sdk }}
UPDATE_BT_DAEMON: ${{ inputs.update_bt_daemon }}
SDK_REPOSITORY: braintrustdata/braintrust-sdk-rust
DAEMON_REPOSITORY: braintrustdata/braintrust-coding-agent-plugins
steps:
# App-authenticated pushes and PRs let pull_request CI start automatically.
- name: Generate app token
id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
app-id: ${{ secrets.BRAINTRUST_BOT_APP_ID }}
private-key: ${{ secrets.BRAINTRUST_BOT_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write

- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0
ref: main

Expand Down Expand Up @@ -119,6 +128,7 @@ jobs:

- name: Commit and open pull request
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
SDK_SHA: ${{ steps.dependencies.outputs.sdk_sha }}
DAEMON_SHA: ${{ steps.dependencies.outputs.daemon_sha }}
shell: bash
Expand Down
Loading