From e3c422af325f3c31e8afcac04b5af731693188ed Mon Sep 17 00:00:00 2001 From: Stephen Rosenthal Date: Mon, 6 Jul 2026 15:13:18 -0700 Subject: [PATCH] Add dora_metrics_read to known OAuth scopes dora_metrics_write was added to default_scopes() to support pup dora patch-deployment, but the read counterpart was never added. This caused DORA read endpoints (list/get deployments and failures) to 403 with an OAuth token, and made --scopes dora_metrics_read rejected as unknown since all_known_scopes() derives from default_scopes(). Fixes DataDog/pup#635 --- src/auth/types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/auth/types.rs b/src/auth/types.rs index 4fb3ac1..33c27a5 100644 --- a/src/auth/types.rs +++ b/src/auth/types.rs @@ -61,6 +61,7 @@ pub fn read_only_scopes() -> Vec<&'static str> { "ci_visibility_read", "cloud_cost_management_read", "code_coverage_read", + "dora_metrics_read", "test_optimization_read", "dashboards_read", "built_in_features", @@ -140,6 +141,7 @@ pub fn default_scopes() -> Vec<&'static str> { // Cloud Cost Management "cloud_cost_management_read", "cloud_cost_management_write", + "dora_metrics_read", "dora_metrics_write", "test_optimization_read", "test_optimization_write",