From 77080aa708aa7f15abf0af7cce48cf02284873bc Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Tue, 25 Feb 2025 20:10:56 +0300 Subject: [PATCH] Provisioning: Update token instructions (#101280) --- .betterer.results | 4 ++- .../provisioning/TokenPermissionsInfo.tsx | 33 ++++++++++++------- 2 files changed, 24 insertions(+), 13 deletions(-) diff --git a/.betterer.results b/.betterer.results index bda601d29cd..69528d66c1f 100644 --- a/.betterer.results +++ b/.betterer.results @@ -5882,7 +5882,9 @@ exports[`better eslint`] = { [0, 0, 0, "No untranslated strings. Wrap text with ", "7"], [0, 0, 0, "No untranslated strings. Wrap text with ", "8"], [0, 0, 0, "No untranslated strings. Wrap text with ", "9"], - [0, 0, 0, "No untranslated strings. Wrap text with ", "10"] + [0, 0, 0, "No untranslated strings. Wrap text with ", "10"], + [0, 0, 0, "No untranslated strings. Wrap text with ", "11"], + [0, 0, 0, "No untranslated strings. Wrap text with ", "12"] ], "public/app/features/provisioning/Wizard/ConnectionStep.tsx:5381": [ [0, 0, 0, "No untranslated strings in text props. Wrap text with or use t()", "0"], diff --git a/public/app/features/provisioning/TokenPermissionsInfo.tsx b/public/app/features/provisioning/TokenPermissionsInfo.tsx index 46476cfcfdf..d2bbc28106b 100644 --- a/public/app/features/provisioning/TokenPermissionsInfo.tsx +++ b/public/app/features/provisioning/TokenPermissionsInfo.tsx @@ -5,22 +5,31 @@ export function TokenPermissionsInfo() {
To create a new Access Token, navigate to{' '} - + Personal Access Tokens {' '} - and click "Generate new token."
-

Ensure that your token has the following permissions:

- -

For all repositories:

-
public_repo, repo:status, repo_deployment, read:packages, read:user, user:email
- -

For GitHub projects:

-
read:org, read:project
- -

An extra setting is required for private repositories:

-
repo (Full control of private repositories)
+

Select the appropriate owner and repository. Then expand Repository permissions, granting

+ + + + + + + + + + + + + + + + + + +
ContentRead and write
MetadataRead only
Pull requests Read and write
WebhooksRead and write   If this instance has a public URL, and should be notified of changes
); }