Skip to content

Commit

Permalink
use pull_request instead of pull_request_target
Browse files Browse the repository at this point in the history
  • Loading branch information
leoromanovsky committed Nov 12, 2024
1 parent a1ac5de commit 708f1b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,7 @@ on:
push:
branches:
- main
pull_request_target:
types:
- opened
- synchronize
- reopened
branches:
- main
pull_request: {}
jobs:
build:
name: Build and Test Rust SDK
Expand Down
8 changes: 1 addition & 7 deletions rust-sdk/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ fn main() {

let event = Event::default()
.push(Push::default().add_branch("main"))
.pull_request_target(
PullRequestTarget::default()
.open()
.synchronize()
.reopen()
.add_branch("main"),
);
.pull_request(PullRequest::default());

Workflow::new("Build and Test")
.on(event)
Expand Down

0 comments on commit 708f1b9

Please sign in to comment.