Provisioning: Update token instructions (#101280)

This commit is contained in:
Ryan McKinley authored and GitHub committed 2025-02-25 20:10:56 +03:00
1 parent ff87355aba
commit 77080aa708
2 files changed
+24 -13

No files matched your search

+3 -1
View File
@@ -5882,7 +5882,9 @@ exports[`better eslint`] = {
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "7"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "8"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "9"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "10"]
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "10"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "11"],
[0, 0, 0, "No untranslated strings. Wrap text with <Trans />", "12"]
],
"public/app/features/provisioning/Wizard/ConnectionStep.tsx:5381": [
[0, 0, 0, "No untranslated strings in text props. Wrap text with <Trans /> or use t()", "0"],
@@ -5,22 +5,31 @@ export function TokenPermissionsInfo() {
<ControlledCollapse collapsible label="Access Token Permissions">
<div>
To create a new Access Token, navigate to{' '}
<TextLink external href="https://github.com/settings/tokens">
<TextLink external href="https://github.com/settings/personal-access-tokens/new">
Personal Access Tokens
</TextLink>{' '}
and click &quot;Generate new token.&quot;
</div>
<p>Ensure that your token has the following permissions:</p>
<p>For all repositories:</p>
<pre>public_repo, repo:status, repo_deployment, read:packages, read:user, user:email</pre>
<p>For GitHub projects:</p>
<pre>read:org, read:project</pre>
<p>An extra setting is required for private repositories:</p>
<pre>repo (Full control of private repositories)</pre>
<p>Select the appropriate owner and repository. Then expand Repository permissions, granting</p>
<table>
<tr>
<td>Content</td>
<td>Read and write</td>
</tr>
<tr>
<td>Metadata</td>
<td>Read only</td>
</tr>
<tr>
<td>Pull requests&nbsp;</td>
<td>Read and write</td>
</tr>
<tr>
<td>Webhooks</td>
<td>Read and write &nbsp;&nbsp;</td>
<td>If this instance has a public URL, and should be notified of changes</td>
</tr>
</table>
</ControlledCollapse>
);
}