Skip to content

Conversation

@aruntyagiTutu
Copy link
Contributor

What
Compute add/modify/delete via Git, handle deletes from HEAD, map to SDR, commit, return commit SHA with push instructions.
Why
Make committing independent of deployment and avoid manual git errors.
Tests
No-changes error; happy path with commit SHA.
Impact
No breaking changes.

@salesforce-cla
Copy link

Thanks for the contribution! Before we can merge this, we need @aruntyagiTutu to sign the Salesforce Inc. Contributor License Agreement.

}

// Create commit
execFileSync('git', ['commit', '-m', commitMessage], { cwd: workingDir, encoding: 'utf8' });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this commitMesage the same tool parameter from commit_devops_center_work_item?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Commit message is passed via ['-m', commitMessage], so it won’t be treated as flags.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant that commitMessage as a tool param is populated by an LLM, so would this count as passing unsanitized LLM input to a shell exec call?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update:

execFileSync is spawning the git bin and bypassing the shell middle step so we are fine here.

Copy link
Member

@cristiand391 cristiand391 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left a question about a possible insecure shell exec

@cristiand391 cristiand391 merged commit 4f7761b into salesforcecli:main Oct 30, 2025
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants