Skip to content

Commit c9dfbed

Browse files
committed
Restrict Rust CLI build job to non-forked repos
Added a condition to the "Rust SDK Bundled CLI Build" job in rust-sdk-tests.yml to ensure it only runs when the workflow is triggered from the main repository, preventing execution on forked repositories.
1 parent 84717c4 commit c9dfbed

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/rust-sdk-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ jobs:
120120
# bundled-CLI release pipeline) hit them downstream.
121121
bundle:
122122
name: "Rust SDK Bundled CLI Build"
123+
if: github.event.repository.fork == false
123124
env:
124125
CARGO_TERM_COLOR: always
125126
RUST_BACKTRACE: 1

0 commit comments

Comments
 (0)