howto/create-access-tokens.md walks through creating the Gitea access token and the GitHub classic personal access token that RepoFoundry needs, with nine illustrations in howto/img/, how to hand the tokens to the script, how to keep them safe and what the script's token errors mean. The README's Token permissions section now links to it.
2 lines
14 KiB
XML
2 lines
14 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 733" width="880" height="733" role="img" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif"><defs><clipPath id="win"><rect x="8" y="8" width="864" height="717" rx="10"/></clipPath><filter id="sh" x="-10%" y="-10%" width="130%" height="140%"><feDropShadow dx="0" dy="3" stdDeviation="4" flood-color="#1f2328" flood-opacity="0.18"/></filter></defs><rect x="0" y="0" width="880" height="733" rx="0" fill="#ffffff" /><rect x="8" y="8" width="864" height="717" rx="10" fill="#fff" stroke="#aab3bd" stroke-width="1" /><g clip-path="url(#win)"><rect x="8" y="8" width="864" height="36" rx="0" fill="#e8ecf1" /><line x1="8" y1="44" x2="872" y2="44" stroke="#cfd6de" stroke-width="1"/><circle cx="28" cy="26" r="5.5" fill="#ff5f57"/><circle cx="46" cy="26" r="5.5" fill="#febc2e"/><circle cx="64" cy="26" r="5.5" fill="#28c840"/><rect x="86" y="14" width="764" height="24" rx="12" fill="#fff" stroke="#cfd6de" stroke-width="1" /><path d="M104 22.5 v-2 a3 3 0 0 1 6 0 v2" fill="none" stroke="#6b7480" stroke-width="1.4"/><rect x="102" y="22" width="10" height="8" rx="1.5" fill="#6b7480" /><text x="120" y="30.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="400" fill="#3b434b" text-anchor="start">https://git.tirsystem.com/user/settings/applications</text><rect x="8" y="44" width="864" height="46" rx="0" fill="#f8f9fa" /><line x1="8" y1="90" x2="872" y2="90" stroke="#d8dde3" stroke-width="1"/><rect x="24" y="56" width="22" height="22" rx="5" fill="#21ba45" /><text x="35" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">G</text><text x="58" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="16" font-weight="700" fill="#1f2328" text-anchor="start">Gitea</text><text x="140" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="400" fill="#59636e" text-anchor="start">Dashboard</text><text x="228.60000000000002" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="400" fill="#59636e" text-anchor="start">Issues</text><text x="295.0" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="400" fill="#59636e" text-anchor="start">Pull requests</text><text x="413.2" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="400" fill="#59636e" text-anchor="start">Milestones</text><text x="509.2" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="400" fill="#59636e" text-anchor="start">Explore</text><circle cx="760" cy="67" r="12" fill="none" stroke="#9aa4af" stroke-width="1.5"/><text x="760" y="72" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="16" font-weight="600" fill="#6b7480" text-anchor="middle">+</text><circle cx="806" cy="67" r="13" fill="#9aa4af"/><circle cx="806" cy="64.14" r="4.68" fill="#fff"/><path d="M797.94 77.14 Q806 67.65 814.06 77.14 Z" fill="#fff"/><polygon points="822,66.0 830,66.0 826,71.0" fill="#59636e"/><text x="40" y="124" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="18" font-weight="700" fill="#1f2328" text-anchor="start">Manage Access Tokens</text><line x1="40" y1="136" x2="840" y2="136" stroke="#d1d9e0" stroke-width="1"/><text x="40" y="168" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="16" font-weight="700" fill="#1f2328" text-anchor="start">Generate New Token</text><text x="40" y="198" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#1f2328" text-anchor="start">Token Name</text><rect x="40" y="208" width="340" height="34" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="52" y="230.0" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">RepoFoundry</text><rect x="36" y="204" width="348" height="42" rx="8" fill="rgba(209,36,47,0.07)" stroke="#d1242f" stroke-width="3" /><circle cx="22" cy="226" r="13" fill="#d1242f" stroke="#fff" stroke-width="2"/><text x="22" y="231" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">1</text><text x="40" y="280" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#1f2328" text-anchor="start">Repository and Organization Access</text><rect x="40" y="292" width="0" height="0" rx="0" fill="none" /><circle cx="48" cy="300" r="8" fill="#fff" stroke="#8c959f" stroke-width="1.5"/><text x="64" y="305" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">Public only</text><rect x="200" y="292" width="0" height="0" rx="0" fill="none" /><circle cx="208" cy="300" r="8" fill="#fff" stroke="#4183c4" stroke-width="1.5"/><circle cx="208" cy="300" r="4.5" fill="#4183c4"/><text x="224" y="305" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">All (public, private, and limited)</text><rect x="194" y="286" width="292" height="28" rx="6" fill="rgba(209,36,47,0.07)" stroke="#d1242f" stroke-width="3" /><circle cx="504" cy="300" r="13" fill="#d1242f" stroke="#fff" stroke-width="2"/><text x="504" y="305" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">2</text><text x="40" y="346" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#1f2328" text-anchor="start">Select permissions</text><rect x="40" y="358" width="520" height="283" rx="8" fill="#fff" stroke="#d1d9e0" stroke-width="1" /><text x="58" y="383" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">activitypub</text><rect x="380" y="364" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="382.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">No Access</text><polygon points="523,375.0 533,375.0 528,381.0" fill="#59636e"/><text x="58" y="414" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">admin</text><rect x="380" y="395" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="413.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">No Access</text><polygon points="523,406.0 533,406.0 528,412.0" fill="#59636e"/><line x1="40" y1="392" x2="560" y2="392" stroke="#eef1f4" stroke-width="1"/><text x="58" y="445" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">issue</text><rect x="380" y="426" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="444.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">No Access</text><polygon points="523,437.0 533,437.0 528,443.0" fill="#59636e"/><line x1="40" y1="423" x2="560" y2="423" stroke="#eef1f4" stroke-width="1"/><text x="58" y="476" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">misc</text><rect x="380" y="457" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="475.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">No Access</text><polygon points="523,468.0 533,468.0 528,474.0" fill="#59636e"/><line x1="40" y1="454" x2="560" y2="454" stroke="#eef1f4" stroke-width="1"/><text x="58" y="507" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">notification</text><rect x="380" y="488" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="506.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">No Access</text><polygon points="523,499.0 533,499.0 528,505.0" fill="#59636e"/><line x1="40" y1="485" x2="560" y2="485" stroke="#eef1f4" stroke-width="1"/><text x="58" y="538" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#1f2328" text-anchor="start">organization</text><rect x="380" y="519" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="537.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">Read and Write</text><polygon points="523,530.0 533,530.0 528,536.0" fill="#59636e"/><rect x="374" y="516" width="176" height="33" rx="6" fill="rgba(209,36,47,0.07)" stroke="#d1242f" stroke-width="3" /><line x1="40" y1="516" x2="560" y2="516" stroke="#eef1f4" stroke-width="1"/><text x="58" y="569" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#59636e" text-anchor="start">package</text><rect x="380" y="550" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="568.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">No Access</text><polygon points="523,561.0 533,561.0 528,567.0" fill="#59636e"/><line x1="40" y1="547" x2="560" y2="547" stroke="#eef1f4" stroke-width="1"/><text x="58" y="600" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#1f2328" text-anchor="start">repository</text><rect x="380" y="581" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="599.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">Read and Write</text><polygon points="523,592.0 533,592.0 528,598.0" fill="#59636e"/><rect x="374" y="578" width="176" height="33" rx="6" fill="rgba(209,36,47,0.07)" stroke="#d1242f" stroke-width="3" /><line x1="40" y1="578" x2="560" y2="578" stroke="#eef1f4" stroke-width="1"/><text x="58" y="631" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#1f2328" text-anchor="start">user</text><rect x="380" y="612" width="164" height="27" rx="6" fill="#fff" stroke="#aab3bd" stroke-width="1" /><text x="392" y="630.5" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="400" fill="#1f2328" text-anchor="start">Read and Write</text><polygon points="523,623.0 533,623.0 528,629.0" fill="#59636e"/><rect x="374" y="609" width="176" height="33" rx="6" fill="rgba(209,36,47,0.07)" stroke="#d1242f" stroke-width="3" /><line x1="40" y1="609" x2="560" y2="609" stroke="#eef1f4" stroke-width="1"/><circle cx="578" cy="533" r="13" fill="#d1242f" stroke="#fff" stroke-width="2"/><text x="578" y="538" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">3</text><circle cx="578" cy="595" r="13" fill="#d1242f" stroke="#fff" stroke-width="2"/><text x="578" y="600" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">3</text><circle cx="578" cy="626" r="13" fill="#d1242f" stroke="#fff" stroke-width="2"/><text x="578" y="631" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">3</text><text x="602" y="593" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="700" fill="#d1242f" text-anchor="start">Set organization, repository</text><text x="602" y="611" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="13" font-weight="700" fill="#d1242f" text-anchor="start">and user to Read and Write</text><rect x="40" y="663" width="150" height="38" rx="6" fill="#4183c4" /><text x="115.0" y="686.9" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="600" fill="#fff" text-anchor="middle">Generate Token</text><rect x="36" y="659" width="158" height="46" rx="8" fill="rgba(209,36,47,0.07)" stroke="#d1242f" stroke-width="3" /><circle cx="22" cy="678" r="13" fill="#d1242f" stroke="#fff" stroke-width="2"/><text x="22" y="683" font-family="'Segoe UI', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif" font-size="14" font-weight="700" fill="#fff" text-anchor="middle">4</text></g></svg>
|