Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ci: Supply `github_token` to `bufbuild_setup_action` (#43957)

Finn Evers34a2bfd6b7e7
diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml
index 8ed11788d44..bd92a17f402 100644
--- a/.github/workflows/run_tests.yml
+++ b/.github/workflows/run_tests.yml
@@ -520,6 +520,7 @@ jobs:
uses: bufbuild/buf-setup-action@v1
with:
version: v1.29.0
+ github_token: ${{ secrets.GITHUB_TOKEN }}
- name: run_tests::check_postgres_and_protobuf_migrations::bufbuild_breaking_action
uses: bufbuild/buf-breaking-action@v1
with:
diff --git a/tooling/xtask/src/tasks/workflows/run_tests.rs b/tooling/xtask/src/tasks/workflows/run_tests.rs
index 5fff9bc8ec4..06a2ba734a3 100644
--- a/tooling/xtask/src/tasks/workflows/run_tests.rs
+++ b/tooling/xtask/src/tasks/workflows/run_tests.rs
@@ -7,7 +7,7 @@ use crate::tasks::workflows::{
nix_build::build_nix,
runners::Arch,
steps::{BASH_SHELL, CommonJobConditions, repository_owner_guard_expression},
- vars::PathCondition,
+ vars::{self, PathCondition},
};
use super::{
@@ -353,7 +353,9 @@ pub(crate) fn check_postgres_and_protobuf_migrations() -> NamedJob {
}
fn bufbuild_setup_action() -> Step<Use> {
- named::uses("bufbuild", "buf-setup-action", "v1").add_with(("version", "v1.29.0"))
+ named::uses("bufbuild", "buf-setup-action", "v1")
+ .add_with(("version", "v1.29.0"))
+ .add_with(("github_token", vars::GITHUB_TOKEN))
}
fn bufbuild_breaking_action() -> Step<Use> {