mirror of
https://github.com/carhartl/talisman-secrets-scan-action.git
synced 2024-12-04 13:27:27 +00:00
Add caveat to readme
This commit is contained in:
parent
a5a9446c51
commit
81bf506a89
1 changed files with 16 additions and 0 deletions
16
README.md
16
README.md
|
@ -7,3 +7,19 @@ This action uses [Talisman](https://thoughtworks.github.io/talisman/) to scan th
|
|||
```yml
|
||||
uses: carhartl/talisman-secrets-scan-action@v1
|
||||
```
|
||||
|
||||
## Caveat
|
||||
|
||||
When using this along with the `actions/checkout@v2` step, you'll need to configure it to fetch the entire history:
|
||||
|
||||
```yml
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
```
|
||||
|
||||
Otherwise you'll run into talisman erroring out while it's trying to execute git with an invalid revision range:
|
||||
|
||||
```
|
||||
time="2021-09-19T07:07:32Z" level=fatal msg="Git command execution failed" command="git diff 0c4a631e70056a95df1c235d238a80828e07cf9c..a32a5c7e1a3d250bf18a080a44a764d9b93b9690 --name-only --diff-filter=ACM" dir=/github/workspace error="exit status 128" output="fatal: Invalid revision range 0c4a631e70056a95df1c235d238a80828e07cf9c..a32a5c7e1a3d250bf18a080a44a764d9b93b9690\n"
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue