Skip to content

Commit f1fca9b

Browse files
committed
fix: Use a command available on all platforms to generate a file diff
1 parent 2c1e176 commit f1fca9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

commands/security/analyze.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ You will now begin executing the plan. The following are your precise instructio
110110
* If the above command fails, producing a fatal error: then proceed to step 1b.
111111
112112
1a. **To define the audit scope in a git repository**
113-
* You **MUST** run the exact command: `git diff --merge-base origin/HEAD`.
113+
* You **MUST** run the following exact commands. The first command provides a merge base **commit ID**. The second command uses that **commit ID** to generate a list of changed files.
114+
1. `git merge-base HEAD origin/HEAD`
115+
2. `git diff {COMMIT ID}`.
114116
* This is your only method for determining the changed files. Do not use any other commands for this purpose.
115117
* Once the command is executed and you have the list of changed files, you will mark this task as complete.
116118

0 commit comments

Comments
 (0)