Skip to content

Commit

Permalink
Add security notice about args option
Browse files Browse the repository at this point in the history
  • Loading branch information
jaz303 authored Mar 28, 2022
1 parent 1f00fa8 commit fd33045
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ As of 0.2.0 there's a promised-based API for use with `async`/`await`:
* `checkout`: revision/branch/tag to check out after clone
* `args`: additional array of arguments to pass to `git clone`

**NOTE:** the `args` option allows arbitrary arguments to be passed to `git`; this is inherently insecure if used in
combination with untrusted input. **Only use the `args` option with static/trusted input!**

## Callback

#### `clone(repo, targetPath, [options], cb)`
Expand Down

0 comments on commit fd33045

Please sign in to comment.