Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert Shortcut detector to tri-state verification #2211

Merged
merged 1 commit into from Dec 17, 2023

Conversation

rgmz
Copy link
Contributor

@rgmz rgmz commented Dec 13, 2023

Description:

This converts the Shortcut detector to use tri-state verification. It also (implicitly) removes FromData returning errors directly, which periodically caused issues scanning chunks.

2023-11-07T03:44:34-05:00	error	trufflehog	error scanning chunk	{"detector_worker_id": "JeY04", "timeout": 10, "error": "Error making request: Get \"https://api.app.shortcut.com/api/v3/member\": dial tcp: lookup api.app.shortcut.com: i/o timeout"}

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@rgmz rgmz force-pushed the fix/shortcut-detector branch 3 times, most recently from 28c3c57 to 8d0b2c9 Compare December 15, 2023 20:38
pkg/detectors/shortcut/shortcut.go Outdated Show resolved Hide resolved
@ahrav ahrav merged commit eeb4dbd into trufflesecurity:main Dec 17, 2023
7 of 8 checks passed
@rgmz rgmz deleted the fix/shortcut-detector branch December 17, 2023 23:50
haraldh pushed a commit to matter-labs/vault-auth-tee that referenced this pull request Dec 21, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[trufflesecurity/trufflehog](https://togithub.com/trufflesecurity/trufflehog)
| action | patch | `v3.63.4` -> `v3.63.5` |

---

### Release Notes

<details>
<summary>trufflesecurity/trufflehog
(trufflesecurity/trufflehog)</summary>

###
[`v3.63.5`](https://togithub.com/trufflesecurity/trufflehog/releases/tag/v3.63.5)

[Compare
Source](https://togithub.com/trufflesecurity/trufflehog/compare/v3.63.4...v3.63.5)

#### What's Changed

- \[chore] Prevent panic when ChunkError has a nil Unit by
[@&#8203;mcastorina](https://togithub.com/mcastorina) in
[trufflesecurity/trufflehog#2227
- \[feat] - Make skipping binaries configurable by
[@&#8203;ahrav](https://togithub.com/ahrav) in
[trufflesecurity/trufflehog#2226
- \[chore] Add skip_binaries field to AzureRepos proto message by
[@&#8203;mcastorina](https://togithub.com/mcastorina) in
[trufflesecurity/trufflehog#2232
- Don't run detector tests on forks by
[@&#8203;rgmz](https://togithub.com/rgmz) in
[trufflesecurity/trufflehog#2234
- Update Freshworks verification to check for valid JSON response by
[@&#8203;rgmz](https://togithub.com/rgmz) in
[trufflesecurity/trufflehog#2212
- Enhance HuggingFace extra data by
[@&#8203;rgmz](https://togithub.com/rgmz) in
[trufflesecurity/trufflehog#2222
- Convert Shortcut detector to tri-state verification by
[@&#8203;rgmz](https://togithub.com/rgmz) in
[trufflesecurity/trufflehog#2211
- add secretID to chunk by [@&#8203;ahrav](https://togithub.com/ahrav)
in
[trufflesecurity/trufflehog#2242
- fix(deps): update module golang.org/x/crypto to v0.17.0 \[security] by
[@&#8203;renovate](https://togithub.com/renovate) in
[trufflesecurity/trufflehog#2243

**Full Changelog**:
trufflesecurity/trufflehog@v3.63.4...v3.63.5

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/matter-labs/vault-auth-tee).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy45My4xIiwidXBkYXRlZEluVmVyIjoiMzcuOTMuMSIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants