Repo Search Checks
With our Git Repository integration, OpsLevel can continuously scan your code repositories and verify all of the operational best practices you’ve defined.
Previously, we’ve shown you a Repo File Check, which can be used to verify that a given file exists in your repo, or verify that it contains some specific text.
This article goes over something subtly different and equally powerful: a Repo Search Check.
The Repo Search Check
Instead of looking at a specific file, Repo Search Checks can be used to scan over all files in your repo to determine whether any of them contain (or do not contain) specific text. You can also restrict the search to files of a given extension.
When to use a Repo Search Check
Simply speaking, if you can use a Repo File Check instead of a Search Check, you should. The Search check is much more computationally expensive to run and is throttled on the integration’s side, so should be used sparingly.
There are some other limitations with the Repo Search Check:
- It doesn’t work with forked repositories.
- It can’t limit the search to a specific file. If you need that, use a Repo File Check.
Our documentation section has more information on repo search checks.
Feedback welcome
As always, if you have any feedback about reports, please email us at info@opslevel.com.