Skip to content

Commit 032f829

Browse files
fix(trufflehog): ignore missing checkout extraheader
checkout v7 no longer sets http.https://github.com/.extraheader, so unset-all exits 5 and aborts the scan. Treat a missing key as success.
1 parent 0a49520 commit 032f829

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/reusable-trufflehog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
run: git fetch --depth=1 origin "${MERGE_GROUP_BASE_SHA}" "${MERGE_GROUP_HEAD_SHA}"
6464

6565
- name: Remove persisted credentials
66-
run: git config --unset-all http.https://github.com/.extraheader
66+
run: git config --unset-all http.https://github.com/.extraheader || true
6767

6868
- name: Fetch org-wide TruffleHog exclude patterns
6969
env:

0 commit comments

Comments
 (0)