diff --git a/codecov.yml b/codecov.yml
index 564b297..ee106a9 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -1,13 +1,30 @@
 ---
 
+codecov:
+  require_ci_to_pass: yes
+  branch: master
+
+comment:
+  layout: "reach, diff, flags, files"
+  behavior: default
+
+coverage:
+  range: 50..80
+  round: down
+  precision: 0
+  status:
+    project:
+      default:
+        # Set the overall project code coverage requirement to 70%
+        target: 80
+    patch:
+      default:
+        # Set the pull request requirement to not regress overall coverage by more than 5%
+        # and let codecov.io set the goal for the code changed in the patch.
+        target: auto
+        threshold: 8
+
 ignore:
   - cmd/**/*
   - main.go
   - internal/raw/constants.go
-
-comment:                  # this is a top-level key
-  layout: "reach, diff, flags, files"
-  behavior: default
-  require_changes: false  # if true: only post the comment if coverage changes
-  require_base: no        # [yes :: must have a base report to post]
-  require_head: yes       # [yes :: must have a head report to post]