-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,20 +7,20 @@ This action uses [Talisman](https://thoughtworks.github.io/talisman/) to scan th | |
```yml | ||
steps: | ||
- name: Detect secrets with Talisman in incoming commits | ||
uses: carhartl/[email protected] | ||
uses: carhartl/[email protected].1 | ||
``` | ||
## Caveat | ||
When using this along with the `actions/checkout@v2` step, you'll need to configure it to fetch the entire history: | ||
When using this along with the `actions/checkout@v2` step you'll need to configure it to avoid a too shallow clone: | ||
|
||
```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: | ||
Otherwise you may 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" | ||
|