mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 18:33:15 +00:00
parent
92014bdd11
commit
f5513dd036
3 changed files with 12 additions and 8 deletions
3
SECURITY.md
Normal file
3
SECURITY.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Security Policy
|
||||
|
||||
For any security concerns, please contact us at security@langchain.dev.
|
||||
|
|
@ -19,9 +19,7 @@ export async function getSandboxSessionOrThrow(
|
|||
}
|
||||
|
||||
if (!sandboxSessionId) {
|
||||
logger.error("FAILED TO RUN COMMAND: No sandbox session ID provided", {
|
||||
input,
|
||||
});
|
||||
logger.error("FAILED TO RUN COMMAND: No sandbox session ID provided");
|
||||
throw new Error("FAILED TO RUN COMMAND: No sandbox session ID provided");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ export async function configureGitUserInRepo(
|
|||
|
||||
if (setRemoteOutput.exitCode !== 0) {
|
||||
logger.error(`Failed to set remote URL with token`, {
|
||||
setRemoteOutput,
|
||||
exitCode: setRemoteOutput.exitCode,
|
||||
});
|
||||
} else {
|
||||
logger.info("Git remote URL updated with token successfully.");
|
||||
|
|
@ -484,11 +484,10 @@ export async function cloneRepo(
|
|||
}
|
||||
|
||||
logger.info("Cloning repository", {
|
||||
// Don't log the full command with token for security reasons
|
||||
repoPath: `${targetRepository.owner}/${targetRepository.repo}`,
|
||||
branch: branchName,
|
||||
baseCommit: targetRepository.baseCommit,
|
||||
cloneCommand: gitCloneCommand.join(" "),
|
||||
cloneCommand: ExecuteCommandError.cleanCommand(gitCloneCommand.join(" ")),
|
||||
});
|
||||
|
||||
cloneResult = await sandbox.process.executeCommand(
|
||||
|
|
@ -508,7 +507,9 @@ export async function cloneRepo(
|
|||
"Branch not found in upstream origin. Cloning default & checking out branch",
|
||||
{
|
||||
targetRepository,
|
||||
cloneDefaultBranchCommand: cloneDefaultBranchCommand.join(" "),
|
||||
cloneDefaultBranchCommand: ExecuteCommandError.cleanCommand(
|
||||
cloneDefaultBranchCommand.join(" "),
|
||||
),
|
||||
},
|
||||
);
|
||||
const cloneDefaultBranchResult = await sandbox.process.executeCommand(
|
||||
|
|
@ -517,7 +518,9 @@ export async function cloneRepo(
|
|||
if (cloneDefaultBranchResult.exitCode !== 0) {
|
||||
logger.error("Failed to clone default branch", {
|
||||
targetRepository,
|
||||
cloneDefaultBranchCommand: cloneDefaultBranchCommand.join(" "),
|
||||
cloneDefaultBranchCommand: ExecuteCommandError.cleanCommand(
|
||||
cloneDefaultBranchCommand.join(" "),
|
||||
),
|
||||
});
|
||||
throw new ExecuteCommandError(
|
||||
cloneDefaultBranchCommand.join(" "),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue