Garry Tan and capy-ai[bot]
76e2d3f987
Catch secrets in files git treats as binary before they are pushed (GST-2195) ( #4243 )
...
* Scan files git calls binary for secrets before push and in pregate (GST-2195)
A NUL byte, UTF-16 text or a -diff attribute made git print 'Binary files differ', so a token in that file passed pregate's secrets check and the pre-push hook. Both diffs now use --text and read such files through scannableText, keeping only credential findings; pregate's secrets check also fails closed when its merge-base diff does not finish.
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Find tokens in UTF-16 text that is mostly Cyrillic or CJK, and note the size limit for binaries
Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Read each line of a binary file both plainly and as UTF-16, so a nearby byte cannot hide a token
Review-Finding: p2/specialist-batched#1 reader=specialist-batched
Review-Finding: p2/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Keep tokens beside CJK characters in UTF-16 files whole, and parse large added diffs in linear time
Review-Finding: p2v/outside-voice#1 reader=outside-voice
Review-Finding: p2v/targeted#1 reader=targeted
Review-Finding: p2v/outside-voice#2 reader=outside-voice
Review-Finding: p2v/adversarial-native#1 reader=adversarial-native
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Split two long sentences in the changelog entry for binary-file scanning
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Describe how the secret check reads binary files, its size limits and its new pass line
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* Say which UTF-16 layouts the binary-file secret scan does not catch yet
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
---------
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2026-11-09 22:52:26 +00:00
..
2026-11-09 18:30:21 +00:00
2026-11-09 22:29:04 +00:00
2026-11-09 11:28:20 +00:00
2026-11-08 03:23:53 +00:00
2026-11-02 17:44:00 +00:00
2026-11-09 09:14:58 +00:00
2026-11-09 08:55:27 +00:00
2026-11-04 03:23:51 +00:00
2026-11-09 21:50:58 +00:00
2026-11-02 14:49:46 +00:00
2026-11-09 06:38:42 +00:00
2026-11-07 06:52:04 +00:00
2026-11-02 13:07:54 +00:00
2026-11-07 04:17:35 +00:00
2026-11-09 09:14:58 +00:00
2026-11-09 18:23:40 +00:00
2026-11-04 23:59:00 +00:00
2026-11-07 04:17:35 +00:00
2026-11-07 08:39:20 +00:00
2026-11-07 04:17:35 +00:00
2026-11-04 03:42:16 +00:00
2026-11-04 03:42:16 +00:00
2026-11-02 13:07:54 +00:00
2026-11-07 04:17:35 +00:00
2026-11-08 16:53:27 +00:00
2026-11-07 04:17:35 +00:00
2026-11-07 19:18:08 +00:00
2026-11-07 04:17:35 +00:00
2026-11-03 02:18:33 +00:00
2026-11-07 08:39:20 +00:00
2026-11-02 14:49:46 +00:00
2026-11-03 01:49:53 +00:00
2026-11-07 18:43:11 +00:00
2026-11-08 00:59:38 +00:00
2026-11-05 00:50:43 +00:00
2026-11-07 22:12:57 +00:00
2026-11-06 14:52:09 +00:00
2026-11-09 16:45:48 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 22:58:53 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 06:49:00 +00:00
2026-11-09 21:16:27 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:02:49 +00:00
2026-11-04 02:59:50 +00:00
2026-11-07 01:26:49 +00:00
2026-11-06 17:16:24 +00:00
2026-11-03 14:14:50 +00:00
2026-11-08 14:26:14 +00:00
2026-11-02 12:58:56 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 05:56:41 +00:00
2026-11-05 05:42:03 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-05 00:29:18 +00:00
2026-11-07 06:52:04 +00:00
2026-11-02 13:07:54 +00:00
2026-11-07 22:12:57 +00:00
2026-11-08 14:26:14 +00:00
2026-11-04 00:18:18 +00:00
2026-11-06 00:38:43 +00:00
2026-11-02 15:08:48 +00:00
2026-11-05 15:57:51 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 05:56:41 +00:00
2026-11-03 00:58:12 +00:00
2026-11-03 00:30:49 +00:00
2026-11-03 01:40:07 +00:00
2026-11-03 01:40:07 +00:00
2026-11-02 16:10:42 +00:00
2026-11-08 02:18:23 +00:00
2026-11-08 11:23:55 +00:00
2026-11-07 22:12:57 +00:00
2026-11-04 22:19:08 +00:00
2026-11-08 02:18:23 +00:00
2026-11-07 19:56:12 +00:00
2026-11-07 19:56:12 +00:00
2026-11-07 19:56:12 +00:00
2026-11-08 02:18:23 +00:00
2026-11-03 01:07:06 +00:00
2026-11-07 06:39:20 +00:00
2026-11-07 04:17:35 +00:00
2026-11-09 10:32:29 +00:00
2026-11-09 01:42:33 +00:00
2026-11-09 04:14:37 +00:00
2026-11-09 01:42:33 +00:00
2026-11-09 01:42:33 +00:00
2026-11-07 22:27:38 +00:00
2026-11-03 01:49:53 +00:00
2026-11-03 01:49:53 +00:00
2026-11-03 01:49:53 +00:00
2026-11-03 01:49:53 +00:00
2026-11-07 04:17:35 +00:00
2026-11-07 06:02:49 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 04:17:35 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 05:51:12 +00:00
2026-11-04 22:19:08 +00:00
2026-11-07 06:02:49 +00:00
2026-11-03 17:08:30 +00:00
2026-11-03 17:08:30 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 14:14:50 +00:00
2026-11-03 16:39:31 +00:00
2026-11-03 01:40:07 +00:00
2026-11-07 04:17:35 +00:00
2026-11-02 21:28:30 +00:00
2026-11-07 06:52:04 +00:00
2026-11-02 17:44:00 +00:00
2026-11-09 21:46:36 +00:00
2026-11-02 13:07:54 +00:00
2026-11-06 16:31:18 +00:00
2026-11-09 21:46:36 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 08:39:20 +00:00
2026-11-03 01:40:07 +00:00
2026-11-09 08:00:55 +00:00
2026-11-09 18:30:21 +00:00
2026-11-03 00:39:09 +00:00
2026-11-03 00:39:09 +00:00
2026-11-08 15:36:28 +00:00
2026-11-04 03:01:32 +00:00
2026-11-07 04:17:35 +00:00
2026-11-07 06:52:04 +00:00
2026-11-03 01:40:07 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 05:51:12 +00:00
2026-11-02 23:05:47 +00:00
2026-11-07 05:51:12 +00:00
2026-11-07 06:52:04 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 05:51:12 +00:00
2026-11-08 14:26:14 +00:00
2026-11-02 14:49:46 +00:00
2026-11-08 14:26:14 +00:00
2026-11-02 16:20:02 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 16:45:48 +00:00
2026-11-03 10:52:35 +00:00
2026-11-02 16:20:02 +00:00
2026-11-06 15:04:30 +00:00
2026-11-03 00:39:09 +00:00
2026-11-04 01:32:57 +00:00
2026-11-03 00:39:09 +00:00
2026-11-09 08:55:27 +00:00
2026-11-02 16:20:02 +00:00
2026-11-03 01:40:07 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 22:29:04 +00:00
2026-11-03 22:35:15 +00:00
2026-11-08 00:59:38 +00:00
2026-11-08 00:59:38 +00:00
2026-11-03 14:30:58 +00:00
2026-11-07 06:02:49 +00:00
2026-11-03 15:41:57 +00:00
2026-11-03 15:04:56 +00:00
2026-11-07 15:25:35 +00:00
2026-11-07 06:52:04 +00:00
2026-11-04 03:33:48 +00:00
2026-11-03 22:58:53 +00:00
2026-11-05 00:53:58 +00:00
2026-11-08 14:26:14 +00:00
2026-11-04 22:19:08 +00:00
2026-11-06 12:40:49 +00:00
2026-11-05 06:06:09 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:52:04 +00:00
2026-11-04 22:19:08 +00:00
2026-11-02 14:49:46 +00:00
2026-11-02 14:49:46 +00:00
2026-11-04 01:31:37 +00:00
2026-11-07 22:12:57 +00:00
2026-11-05 05:16:39 +00:00
2026-11-02 18:05:23 +00:00
2026-11-02 18:05:23 +00:00
2026-11-04 03:03:39 +00:00
2026-11-07 06:02:49 +00:00
2026-11-07 15:25:35 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 04:17:35 +00:00
2026-11-02 17:44:00 +00:00
2026-11-02 17:44:00 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:02:49 +00:00
2026-11-02 17:44:00 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 06:52:04 +00:00
2026-11-08 03:23:53 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 15:36:28 +00:00
2026-11-02 23:05:47 +00:00
2026-11-07 06:02:49 +00:00
2026-11-07 06:02:49 +00:00
2026-11-05 00:01:33 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 07:39:51 +00:00
2026-11-07 04:17:35 +00:00
2026-11-08 00:59:38 +00:00
2026-11-07 06:52:04 +00:00
2026-11-06 17:13:48 +00:00
2026-11-08 00:59:38 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 05:51:12 +00:00
2026-11-05 00:43:21 +00:00
2026-11-03 04:02:41 +00:00
2026-11-02 14:59:10 +00:00
2026-11-02 19:23:49 +00:00
2026-11-03 08:34:42 +00:00
2026-11-04 00:18:18 +00:00
2026-11-06 17:13:48 +00:00
2026-11-04 08:02:04 +00:00
2026-11-02 19:23:49 +00:00
2026-11-02 13:07:54 +00:00
2026-11-02 21:04:44 +00:00
2026-11-07 11:44:50 +00:00
2026-11-09 22:52:26 +00:00
2026-11-08 21:10:22 +00:00
2026-11-03 01:59:44 +00:00
2026-11-05 00:01:33 +00:00
2026-11-03 02:18:33 +00:00
2026-11-07 06:52:04 +00:00
2026-11-08 00:59:38 +00:00
2026-11-07 22:12:57 +00:00
2026-11-07 06:52:04 +00:00
2026-11-08 17:09:24 +00:00
2026-11-06 14:52:09 +00:00
2026-11-03 14:21:35 +00:00
2026-11-07 06:52:04 +00:00
2026-11-09 06:38:42 +00:00
2026-11-07 06:52:04 +00:00
2026-11-02 17:44:00 +00:00
2026-11-04 01:39:08 +00:00
2026-11-09 06:38:42 +00:00
2026-11-09 08:55:27 +00:00
2026-11-07 06:56:32 +00:00
2026-11-09 18:24:44 +00:00
2026-11-09 18:24:44 +00:00
2026-11-05 17:57:21 +00:00
2026-11-09 22:52:26 +00:00
2026-11-02 12:16:51 +00:00
2026-11-04 03:15:35 +00:00
2026-11-02 12:58:56 +00:00
2026-11-08 14:26:14 +00:00
2026-11-07 06:52:04 +00:00
2026-11-02 16:32:10 +00:00
2026-11-04 01:28:17 +00:00
2026-11-03 14:06:33 +00:00
2026-11-07 06:52:04 +00:00
2026-11-03 22:44:59 +00:00
2026-11-05 02:30:04 +00:00
2026-11-03 01:40:07 +00:00
2026-11-03 01:40:07 +00:00
2026-11-04 09:55:42 +00:00
2026-11-08 01:46:06 +00:00
2026-11-03 18:22:59 +00:00
2026-11-04 00:11:07 +00:00
2026-11-08 14:26:14 +00:00
2026-11-08 01:46:06 +00:00
2026-11-04 09:55:42 +00:00
2026-11-09 11:35:56 +00:00
2026-11-09 08:00:55 +00:00
2026-11-04 23:46:23 +00:00
2026-11-03 02:56:02 +00:00
2026-11-05 03:37:28 +00:00
2026-11-04 09:55:42 +00:00
2026-11-03 22:35:15 +00:00
2026-11-03 10:39:03 +00:00
2026-11-04 01:23:43 +00:00
2026-11-09 11:28:20 +00:00
2026-11-06 18:07:57 +00:00
2026-11-09 21:43:04 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 15:04:56 +00:00
2026-11-07 06:01:30 +00:00
2026-11-06 21:58:23 +00:00
2026-11-06 12:33:37 +00:00
2026-11-02 12:16:51 +00:00
2026-11-07 11:44:50 +00:00
2026-11-06 11:27:58 +00:00
2026-11-03 10:46:14 +00:00
2026-11-09 14:13:19 +00:00
2026-11-09 03:43:59 +00:00
2026-11-04 23:53:55 +00:00
2026-11-04 02:57:34 +00:00
2026-11-04 23:53:55 +00:00
2026-11-09 11:28:20 +00:00
2026-11-08 14:26:14 +00:00
2026-11-02 12:06:35 +00:00
2026-11-09 11:28:20 +00:00
2026-11-09 03:43:59 +00:00
2026-11-02 19:33:38 +00:00
2026-11-07 06:01:30 +00:00
2026-11-08 00:59:38 +00:00
2026-11-06 23:37:33 +00:00
2026-11-04 04:35:24 +00:00
2026-11-03 01:40:07 +00:00
2026-11-09 21:36:45 +00:00
2026-11-07 22:12:57 +00:00
2026-11-09 21:50:58 +00:00
2026-11-08 14:26:14 +00:00
2026-11-02 17:44:00 +00:00
2026-11-02 14:39:24 +00:00
2026-11-02 14:39:24 +00:00
2026-11-08 14:26:14 +00:00
2026-11-02 13:07:54 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:56:32 +00:00
2026-11-04 03:01:32 +00:00
2026-11-02 17:44:00 +00:00
2026-11-08 15:36:28 +00:00
2026-11-07 04:17:35 +00:00
2026-11-03 18:34:14 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 18:43:11 +00:00
2026-11-07 06:01:30 +00:00
2026-11-09 05:56:41 +00:00
2026-11-02 23:05:47 +00:00
2026-11-02 23:05:47 +00:00
2026-11-02 23:05:47 +00:00
2026-11-07 04:17:35 +00:00
2026-11-06 10:16:00 +00:00
2026-11-06 10:16:00 +00:00
2026-11-06 12:35:40 +00:00
2026-11-06 23:55:54 +00:00
2026-11-07 11:44:50 +00:00
2026-11-06 04:33:54 +00:00
2026-11-04 02:59:50 +00:00
2026-11-06 18:14:51 +00:00
2026-11-02 13:07:54 +00:00
2026-11-06 08:47:50 +00:00
2026-11-07 15:44:35 +00:00
2026-11-05 04:16:06 +00:00
2026-11-02 15:08:48 +00:00
2026-11-05 17:12:15 +00:00
2026-11-09 06:37:08 +00:00
2026-11-07 15:25:35 +00:00
2026-11-06 04:33:54 +00:00
2026-11-09 11:28:20 +00:00
2026-11-03 01:40:07 +00:00
2026-11-03 01:40:07 +00:00
2026-11-08 00:59:38 +00:00
2026-11-07 06:52:04 +00:00
2026-11-05 02:30:04 +00:00
2026-11-06 04:33:54 +00:00
2026-11-03 01:40:07 +00:00
2026-11-02 23:15:57 +00:00
2026-11-04 01:32:57 +00:00
2026-11-08 00:59:38 +00:00
2026-11-09 22:29:04 +00:00
2026-11-09 22:29:04 +00:00
2026-11-03 20:09:15 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 20:09:15 +00:00
2026-11-03 15:13:49 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 18:22:59 +00:00
2026-11-02 21:17:24 +00:00
2026-11-03 22:35:15 +00:00
2026-11-08 00:59:38 +00:00
2026-11-08 08:58:11 +00:00
2026-11-07 15:44:35 +00:00
2026-11-08 00:59:38 +00:00
2026-11-08 00:59:38 +00:00
2026-11-06 13:52:51 +00:00
2026-11-08 00:59:38 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 17:08:30 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:02:49 +00:00
2026-11-04 23:59:00 +00:00
2026-11-05 15:57:51 +00:00
2026-11-05 00:22:40 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 16:39:15 +00:00
2026-11-07 06:02:49 +00:00
2026-11-07 06:02:49 +00:00
2026-11-02 23:05:47 +00:00
2026-11-07 06:02:49 +00:00
2026-11-07 06:02:49 +00:00
2026-11-07 06:02:49 +00:00
2026-11-07 06:02:49 +00:00
2026-11-02 23:05:47 +00:00
2026-11-09 15:54:27 +00:00
2026-11-09 15:54:27 +00:00
2026-11-09 15:54:27 +00:00
2026-11-09 15:54:27 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 18:43:11 +00:00
2026-11-07 04:17:35 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 06:52:04 +00:00
2026-11-07 22:12:57 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 22:51:42 +00:00
2026-11-03 10:52:35 +00:00
2026-11-02 19:00:05 +00:00
2026-11-07 19:49:19 +00:00
2026-11-07 06:01:30 +00:00
2026-11-09 21:46:36 +00:00
2026-11-05 00:43:21 +00:00
2026-11-05 00:43:21 +00:00
2026-11-09 06:37:08 +00:00
2026-11-08 02:18:23 +00:00
2026-11-09 15:54:27 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 15:54:27 +00:00
2026-11-08 00:59:38 +00:00
2026-11-05 02:30:04 +00:00
2026-11-07 06:02:49 +00:00
2026-11-03 01:40:07 +00:00
2026-11-08 14:26:14 +00:00
2026-11-03 14:06:33 +00:00
2026-11-02 17:44:00 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 05:56:41 +00:00
2026-11-07 06:01:30 +00:00
2026-11-06 12:40:49 +00:00
2026-11-05 17:56:15 +00:00
2026-11-06 19:26:10 +00:00
2026-11-06 20:28:28 +00:00
2026-11-08 14:26:14 +00:00
2026-11-09 01:42:33 +00:00
2026-11-09 01:42:33 +00:00
2026-11-04 22:19:08 +00:00
2026-11-04 22:19:08 +00:00