Peter Steinberger
169dad6224
fix: watch-pr-ci exits with false FAILURE when draft-to-ready cancels superseded runs ( #113230 )
...
* fix(scripts): ignore superseded workflow runs in watch-pr-ci rollup classification
Draft->ready re-triggers leave cancelled superseded runs on the head SHA
forever, and GitHub's aggregate rollup state counts them, so the watcher
emitted terminal FAILURE while the replacement run was still in progress
and could never reach GREEN (observed on PR #113150 , head bd1b9a0e ).
- fetch run identity per check and resolve same-name checks to the newest
run/check id (GitHub latest-name-wins); drop cancelled checks from
replaced runs; keep older runs' unique jobs visible
- paginate statusCheckRollup contexts (bounded, 10 pages) so >100-context
rollups are not truncation-blind; changed or lost snapshots throw into
the bounded retry
- classify GREEN when aggregate FAILURE is explained solely by superseded
contexts with full visibility; truncation still fails conservatively
* ci: scope GitHub App token permissions in stale, labeler, auto-response, and pr-ci-sweeper
Fixes red main: #112963 bumped zizmor v1.22.0 -> v1.28.0, whose github-app
audit flags create-github-app-token mints without permission-* inputs (14
high findings, Workflow Sanity red on main since 3b7b2a2a1f ). Most
workflows already migrated to scoped tokens; these four were stragglers.
Scopes follow each consumer's actual API surface: stale needs issues/PR
write plus actions read for its state-cache check; labeler needs label
CRUD (issues write), PR write, members read for maintainer gates, and
contents read where actions/labeler reads its config; auto-response needs
issues/PR write plus members read; pr-ci-sweeper needs actions write to
re-fire runs, checks read, and PR write. Verified locally with the exact
CI invocation (zizmor 1.28.0, repo config, regular persona, medium
severity/confidence): no findings, ignore/suppress counts match CI.
2026-07-23 22:46:04 -07:00
..
2026-07-21 20:54:26 +08:00
2026-06-20 03:29:15 +02:00
2026-07-16 20:59:29 -07:00
2026-07-21 01:06:12 -05:00
2026-07-07 00:39:59 +01:00
2026-06-21 18:19:07 +02:00
2026-07-21 00:06:15 -05:00
2026-06-21 22:33:59 +02:00
2026-07-23 09:01:07 -07:00
2026-07-10 10:42:36 +01:00
2026-07-12 17:24:45 -07:00
2026-07-19 00:10:32 +01:00
2026-07-12 10:42:07 +01:00
2026-07-05 08:00:23 -04:00
2026-07-11 06:15:41 -07:00
2026-07-07 02:03:36 -04:00
2026-07-21 06:18:27 -07:00
2026-07-14 23:11:28 -07:00
2026-07-19 08:39:16 -07:00
2026-07-13 22:12:21 -07:00
2026-06-23 14:01:29 +02:00
2026-07-04 13:47:14 -07:00
2026-07-16 04:53:43 -07:00
2026-06-20 04:04:40 +08:00
2026-07-19 11:04:48 -07:00
2026-06-20 21:36:42 +02:00
2026-07-12 10:42:07 +01:00
2026-07-21 23:44:48 -07:00
2026-07-15 19:28:37 -07:00
2026-07-13 17:13:16 -07:00
2026-07-22 14:38:26 -07:00
2026-07-12 10:26:32 +08:00
2026-07-21 21:57:56 -07:00
2026-07-17 11:09:01 +01:00
2026-07-22 14:23:51 -07:00
2026-07-23 07:30:35 -07:00
2026-07-19 00:36:15 +01:00
2026-07-11 06:15:41 -07:00
2026-07-23 01:28:11 -04:00
2026-07-11 01:09:51 -07:00
2026-06-21 21:39:41 +02:00
2026-07-21 20:28:43 -07:00
2026-07-17 11:01:38 +01:00
2026-07-11 15:04:25 -07:00
2026-07-11 06:15:41 -07:00
2026-07-15 05:03:43 +01:00
2026-07-21 20:28:43 -07:00
2026-07-18 19:58:37 -07:00
2026-07-18 12:25:40 +01:00
2026-07-21 04:20:04 -07:00
2026-06-23 10:31:05 +02:00
2026-07-19 01:29:23 -07:00
2026-07-12 08:40:22 +08:00
2026-06-23 10:35:28 +02:00
2026-07-13 00:34:57 -07:00
2026-07-01 22:05:26 -05:00
2026-07-18 03:15:38 +01:00
2026-07-22 01:16:35 -07:00
2026-07-14 10:41:36 -07:00
2026-07-16 12:14:06 -07:00
2026-07-23 21:21:01 -07:00
2026-07-19 11:04:48 -07:00
2026-06-20 20:12:30 +02:00
2026-06-21 18:04:47 +02:00
2026-07-15 13:06:24 -07:00
2026-07-22 00:14:33 -07:00
2026-07-18 09:20:14 +01:00
2026-07-18 03:39:03 +01:00
2026-07-23 17:17:10 -07:00
2026-07-10 18:06:06 +01:00
2026-07-15 03:34:08 -07:00
2026-07-16 00:39:08 -07:00
2026-07-12 07:44:25 +08:00
2026-07-19 00:01:23 +01:00
2026-07-12 10:42:07 +01:00
2026-07-12 12:09:17 +08:00
2026-07-23 10:21:05 -07:00
2026-06-18 20:46:11 +02:00
2026-07-19 02:09:55 -07:00
2026-07-19 07:35:45 -07:00
2026-07-19 07:35:45 -07:00
2026-07-12 15:09:23 +08:00
2026-07-17 13:43:12 +01:00
2026-07-23 01:03:34 -04:00
2026-07-15 22:32:29 -07:00
2026-07-23 00:51:10 -04:00
2026-07-13 22:09:36 -07:00
2026-07-23 08:46:55 -04:00
2026-06-23 13:43:44 +02:00
2026-07-16 18:48:20 -07:00
2026-07-23 16:17:13 +00:00
2026-07-11 01:09:51 -07:00
2026-06-20 02:02:37 +02:00
2026-07-16 18:56:18 -07:00
2026-07-23 07:18:55 -04:00
2026-07-23 08:46:55 -04:00
2026-07-23 10:03:11 +09:00
2026-07-23 08:46:55 -04:00
2026-07-12 10:42:07 +01:00
2026-07-11 01:09:51 -07:00
2026-07-23 07:18:55 -04:00
2026-07-11 06:30:57 -07:00
2026-07-16 01:12:40 -07:00
2026-07-10 13:00:50 +01:00
2026-07-23 10:03:11 +09:00
2026-06-18 20:57:55 +02:00
2026-07-06 17:31:23 -04:00
2026-06-22 14:14:20 +08:00
2026-06-21 07:40:06 +02:00
2026-07-16 20:43:06 -04:00
2026-06-21 11:30:45 +02:00
2026-06-20 16:26:00 +02:00
2026-07-16 08:35:51 -07:00
2026-07-19 00:14:36 -06:00
2026-07-15 06:14:54 -07:00
2026-07-05 12:40:31 +02:00
2026-07-15 13:37:53 -07:00
2026-07-17 01:57:57 -07:00
2026-07-11 01:09:51 -07:00
2026-06-24 13:24:43 +08:00
2026-07-15 01:13:44 -07:00
2026-07-20 18:50:03 -07:00
2026-06-21 11:55:25 +02:00
2026-07-12 07:17:48 +02:00
2026-06-21 11:04:38 +02:00
2026-07-13 11:44:28 -07:00
2026-07-16 10:26:29 +01:00
2026-07-19 09:42:16 -07:00
2026-07-14 07:42:17 -07:00
2026-07-12 10:42:07 +01:00
2026-07-21 20:28:43 -07:00
2026-07-20 00:23:36 -07:00
2026-07-16 17:33:35 -07:00
2026-07-19 00:37:06 +01:00
2026-06-22 18:44:21 +08:00
2026-06-21 10:54:09 +02:00
2026-07-16 17:17:07 -07:00
2026-07-23 16:17:13 +00:00
2026-07-16 08:02:31 -07:00
2026-07-15 23:01:31 -07:00
2026-07-14 12:11:25 -07:00
2026-07-21 20:14:58 -07:00
2026-06-22 21:07:57 -04:00
2026-06-21 23:00:30 +02:00
2026-07-19 16:52:44 +08:00
2026-07-23 21:34:34 -05:00
2026-07-23 18:42:16 -05:00
2026-07-23 16:24:15 -05:00
2026-07-12 12:52:38 -07:00
2026-07-23 18:18:32 -05:00
2026-07-01 20:42:25 -07:00
2026-07-22 22:56:22 -05:00
2026-07-01 22:05:26 -05:00
2026-07-23 18:42:16 -05:00
2026-07-05 10:57:19 -07:00
2026-06-21 04:02:14 +02:00
2026-07-12 10:42:07 +01:00
2026-07-12 10:42:07 +01:00
2026-07-11 15:57:55 +08:00
2026-07-10 17:31:42 -07:00
2026-07-10 16:59:10 +01:00
2026-07-10 19:01:30 +01:00
2026-07-10 16:59:10 +01:00
2026-07-23 06:52:23 -07:00
2026-06-19 00:54:57 +02:00
2026-07-20 19:42:56 -07:00
2026-07-12 15:22:37 +08:00
2026-07-19 08:58:43 -07:00
2026-07-14 00:27:34 +01:00
2026-07-15 13:14:35 -07:00
2026-07-15 12:55:00 -07:00
2026-07-18 22:00:15 +01:00
2026-07-19 00:14:36 -06:00
2026-07-07 10:54:35 +01:00
2026-07-07 10:54:35 +01:00
2026-06-23 15:20:29 +02:00
2026-07-16 21:42:12 -07:00
2026-07-11 01:09:51 -07:00
2026-06-26 18:54:45 -05:00
2026-06-21 10:31:00 +02:00
2026-07-16 18:49:36 -07:00
2026-07-22 22:56:22 -05:00
2026-06-20 21:44:09 +02:00
2026-06-21 11:15:14 +02:00
2026-07-17 22:11:23 +01:00
2026-06-20 20:02:45 +01:00
2026-07-17 23:14:35 -06:00
2026-06-21 11:23:08 +02:00
2026-06-29 00:39:06 -07:00
2026-07-12 09:01:33 +01:00
2026-07-16 04:50:53 -07:00
2026-07-22 18:00:37 -07:00
2026-07-18 03:39:03 +01:00
2026-07-12 10:42:07 +01:00
2026-07-18 08:16:05 +01:00
2026-07-11 06:15:41 -07:00
2026-07-23 10:03:11 +09:00
2026-07-20 00:23:36 -07:00
2026-07-23 10:03:11 +09:00
2026-07-18 09:29:34 +01:00
2026-07-13 11:41:27 -07:00
2026-07-23 21:21:01 -07:00
2026-06-21 16:53:49 +02:00
2026-07-23 11:32:04 -07:00
2026-07-17 11:37:35 +01:00
2026-07-18 01:00:23 +01:00
2026-07-23 16:17:13 +00:00
2026-07-10 22:31:42 -07:00
2026-07-05 13:25:36 +02:00
2026-07-19 02:30:49 -07:00
2026-07-04 08:00:15 +02:00
2026-06-21 21:27:57 +02:00
2026-07-16 03:36:20 -07:00
2026-07-17 04:14:39 +01:00
2026-07-20 19:45:35 -07:00
2026-07-23 21:21:01 -07:00
2026-06-22 05:11:25 +02:00
2026-07-23 21:21:01 -07:00
2026-07-19 16:52:44 +08:00
2026-07-19 16:52:44 +08:00
2026-07-15 03:45:37 -07:00
2026-07-15 17:41:54 +01:00
2026-07-11 21:29:40 +08:00
2026-07-15 22:40:00 -07:00
2026-06-20 20:13:24 +01:00
2026-07-20 22:43:04 -07:00
2026-07-20 21:52:48 -07:00
2026-07-18 06:06:12 +01:00
2026-06-20 22:23:30 +02:00
2026-07-08 08:01:00 -07:00
2026-06-21 22:19:54 +02:00
2026-07-11 01:09:51 -07:00
2026-07-23 00:53:23 -04:00
2026-07-17 06:11:20 +01:00
2026-07-11 01:09:51 -07:00
2026-07-16 08:35:10 -07:00
2026-07-12 04:28:22 +02:00
2026-07-16 00:38:44 -07:00
2026-07-16 04:53:43 -07:00
2026-07-16 17:53:09 -07:00
2026-06-21 11:15:14 +02:00
2026-07-19 12:14:21 -07:00
2026-07-19 23:24:29 -07:00
2026-07-22 01:20:35 -07:00
2026-07-13 03:40:53 -07:00
2026-07-19 02:09:55 -07:00
2026-07-21 21:57:56 -07:00
2026-07-19 02:09:55 -07:00
2026-07-20 06:49:32 -07:00
2026-07-15 00:26:41 -07:00
2026-07-19 11:04:48 -07:00
2026-07-14 05:41:24 -07:00
2026-07-15 06:14:54 -07:00
2026-07-23 11:10:49 -07:00
2026-07-11 01:09:51 -07:00
2026-06-23 13:34:20 +02:00
2026-06-24 10:22:56 +08:00
2026-06-23 14:01:29 +02:00
2026-07-16 13:51:18 -07:00
2026-06-19 14:00:38 -06:00
2026-07-15 20:02:53 +01:00
2026-07-22 21:02:47 -04:00
2026-07-20 00:23:36 -07:00
2026-07-18 23:29:19 +01:00
2026-07-18 04:07:42 +01:00
2026-07-16 15:53:00 +01:00
2026-07-19 15:42:41 -07:00
2026-07-12 10:42:07 +01:00
2026-07-15 00:34:38 -07:00
2026-06-21 22:26:44 +02:00
2026-07-05 08:00:23 -04:00
2026-07-10 17:47:32 -07:00
2026-07-21 15:44:41 +09:00
2026-07-15 09:52:01 +01:00
2026-07-10 02:06:53 -07:00
2026-07-16 04:50:41 -04:00
2026-07-11 01:09:51 -07:00
2026-07-11 09:44:19 -07:00
2026-07-15 10:05:02 -07:00
2026-07-15 13:37:53 -07:00
2026-07-16 09:03:15 -07:00
2026-07-21 15:41:49 +08:00
2026-07-14 09:59:20 -07:00
2026-07-18 19:58:37 -07:00
2026-07-07 10:22:07 +01:00
2026-07-23 21:21:01 -07:00
2026-07-21 22:53:12 -07:00
2026-07-11 07:28:20 -07:00
2026-06-21 21:53:58 +02:00
2026-07-16 17:22:28 -07:00
2026-07-16 02:00:15 -07:00
2026-07-04 01:56:21 +02:00
2026-07-19 11:04:48 -07:00
2026-06-24 22:54:00 +08:00
2026-06-22 18:44:21 +08:00
2026-07-11 06:15:41 -07:00
2026-07-01 21:21:31 -05:00
2026-07-11 14:50:37 -07:00
2026-07-15 22:40:39 -07:00
2026-07-12 10:42:07 +01:00
2026-07-03 17:58:15 -07:00
2026-07-23 10:21:05 -07:00
2026-07-19 03:38:51 -07:00
2026-07-19 03:38:51 -07:00
2026-07-11 06:15:41 -07:00
2026-06-21 18:56:26 +02:00
2026-07-18 08:39:21 +01:00
2026-07-14 16:05:14 -07:00
2026-07-19 00:14:36 -06:00
2026-07-15 06:14:54 -07:00
2026-07-11 01:09:51 -07:00
2026-07-05 14:19:13 -04:00
2026-07-19 20:04:14 -07:00
2026-07-16 16:47:30 -07:00
2026-07-18 06:59:29 +01:00
2026-07-11 01:03:30 +01:00
2026-07-20 19:42:56 -07:00
2026-06-18 23:26:21 +02:00
2026-06-18 23:33:44 +02:00
2026-07-21 15:44:41 +09:00
2026-07-16 00:39:08 -07:00
2026-06-23 14:01:29 +02:00
2026-07-23 17:17:10 -07:00
2026-07-12 10:42:07 +01:00
2026-06-20 03:12:16 +02:00
2026-07-05 14:25:57 -04:00
2026-07-11 12:48:27 +08:00
2026-07-16 17:20:47 -07:00
2026-06-20 02:02:37 +02:00
2026-07-12 17:26:04 -07:00
2026-07-17 00:03:41 -07:00
2026-07-16 05:58:53 -07:00
2026-07-14 18:08:33 -07:00
2026-07-18 01:05:07 +01:00
2026-07-18 09:31:47 +01:00
2026-07-23 10:21:05 -07:00
2026-06-21 22:19:54 +02:00
2026-07-14 22:14:11 -07:00
2026-07-05 12:53:06 -07:00
2026-07-13 13:38:19 +08:00
2026-07-17 09:48:38 +01:00
2026-07-11 06:15:41 -07:00
2026-07-17 00:10:17 -07:00
2026-07-05 11:12:55 -07:00
2026-07-19 05:34:48 -07:00
2026-07-15 05:03:43 +01:00
2026-06-21 21:32:17 +02:00
2026-07-19 12:44:18 -07:00
2026-07-11 06:15:41 -07:00
2026-06-20 15:43:04 +02:00
2026-07-23 22:46:04 -07:00
2026-07-10 10:42:36 +01:00
2026-07-23 09:52:22 -07:00
2026-07-12 10:42:07 +01:00