PageSourceSearch

https://offer-run.com/assets/HelpGitHubToken-Bu6MpYVT.js

js offer-run.com collected 2026-10-02 01:38:22 UTC 5,694 bytes, 1 lines download raw bytes

1import{d,u as c,r as p,o as b,c as f,a as t,b as o,e as a,f as i,w as l,_ as m}from"./app-Dl2q-KH9.js";const u={class:"help-page"},h={class:"card card-pad help-steps"},v={class:"card card-pad help-faq"},g=d({__name:"HelpGitHubToken",setup(k){const s=c();function r(){window.history.length>1?s.back():s.push({name:"profile"})}return(y,e)=>{const n=p("router-link");return b(),f("div",u,[t("button",{class:"btn btn-ghost help-back",onClick:r},"← Back"),e[13]||(e[13]=o('<header class="page-head" data-v-e3e0c5fb><h1 class="help-title" data-v-e3e0c5fb><span class="mdi mdi-github help-title-icon" data-v-e3e0c5fb></span> How to get your GitHub token (a Personal Access Token) </h1><p class="help-lead" data-v-e3e0c5fb> A GitHub <em data-v-e3e0c5fb>Personal Access Token</em> is a long secret code that lets this app read your repositories on your behalf. It&#39;s <strong data-v-e3e0c5fb>optional</strong> — it simply lets the app look at more repositories (including private ones) without hitting GitHub&#39;s hourly limit. Here&#39;s how to create one; no technical knowledge needed. </p></header><section class="card card-pad help-callout help-callout--warn" data-v-e3e0c5fb><span class="mdi mdi-shield-lock-outline" data-v-e3e0c5fb></span><div data-v-e3e0c5fb><strong data-v-e3e0c5fb>Treat this like a password.</strong> GitHub shows the token only once, right after you create it. Copy it immediately and paste it into this app. If you lose it, just create a new one — you can delete old ones any time. </div></section>',2)),t("section",h,[e[9]||(e[9]=t("h2",null,"Step-by-step",-1)),t("ol",null,[e[8]||(e[8]=o('<li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Open the token page.</strong> Sign in to GitHub, then go straight to <a href="https://github.com/settings/tokens?type=beta" target="_blank" rel="noopener" data-v-e3e0c5fb> github.com/settings/tokens </a>. (You can also reach it manually: click your photo top-right → <em data-v-e3e0c5fb>Settings</em> → scroll to <em data-v-e3e0c5fb>Developer settings</em> at the very bottom of the left menu → <em data-v-e3e0c5fb>Personal access tokens</em>.) </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Start a new token.</strong> Choose <em data-v-e3e0c5fb>Fine-grained tokens</em>, then click <em data-v-e3e0c5fb>Generate new token</em>. (If you only see the “classic” option, that works too — see the note below.) </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Give it a name.</strong> In <em data-v-e3e0c5fb>Token name</em>, type something you&#39;ll recognise, such as <code data-v-e3e0c5fb>CV Generator</code>. </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Pick an expiry.</strong> Under <em data-v-e3e0c5fb>Expiration</em>, 90 days is a sensible choice. When it expires the app will simply stop reading your repos until you make a new one. </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Choose which repositories.</strong> Under <em data-v-e3e0c5fb>Repository access</em>, pick <em data-v-e3e0c5fb>All repositories</em> (simplest), or <em data-v-e3e0c5fb>Only select repositories</em> if you&#39;d rather limit it. </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Set read-only permissions.</strong> Open <em data-v-e3e0c5fb>Repository permissions</em>, find <em data-v-e3e0c5fb>Contents</em> and <em data-v-e3e0c5fb>Metadata</em>, and set each to <strong data-v-e3e0c5fb>Read-only</strong>. That&#39;s all this app needs — it never changes anything. </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Generate it.</strong> Scroll down and click <em data-v-e3e0c5fb>Generate token</em>. You may be asked to confirm your password. </li><li data-v-e3e0c5fb><strong data-v-e3e0c5fb>Copy it now.</strong> GitHub shows the token once (it starts with <code data-v-e3e0c5fb>github_pat_</code> for fine-grained tokens, or <code data-v-e3e0c5fb>ghp_</code> for classic ones). Click the copy icon next to it. </li>',8)),t("li",null,[e[1]||(e[1]=t("strong",null,"Paste it into the app.",-1)),e[2]||(e[2]=a(" Go to the ",-1)),i(n,{to:{name:"profile"}},{default:l(()=>[...e[0]||(e[0]=[a("Master Profile",-1)])]),_:1}),e[3]||(e[3]=a(" page, open the ",-1)),e[4]||(e[4]=t("em",null,"GitHub",-1)),e[5]||(e[5]=a(" tab, and paste the token into the ",-1)),e[6]||(e[6]=t("em",null,"Personal Access Token",-1)),e[7]||(e[7]=a(" field. ",-1))])])]),e[14]||(e[14]=o('<section class="card card-pad help-steps" data-v-e3e0c5fb><h2 data-v-e3e0c5fb>Using a “classic” token instead?</h2><ul class="help-loose" data-v-e3e0c5fb><li data-v-e3e0c5fb>
1On the tokens page choose <em data-v-e3e0c5fb>Tokens (classic)</em> → <em data-v-e3e0c5fb>Generate new token (classic)</em>.</li><li data-v-e3e0c5fb>Add a note, pick an expiry, and tick the <code data-v-e3e0c5fb>public_repo</code> box (or the broader <code data-v-e3e0c5fb>repo</code> box if you want private repositories included).</li><li data-v-e3e0c5fb>Click <em data-v-e3e0c5fb>Generate token</em> at the bottom, then copy the <code data-v-e3e0c5fb>ghp_…</code> value.</li></ul></section>',1)),t("section",v,[e[11]||(e[11]=t("h2",null,"Good to know",-1)),e[12]||(e[12]=t("ul",{class:"help-loose"},[t("li",null,"For public repositories you don't strictly need a token at all — it just raises the limit on how many requests the app can make per hour."),t("li",null,[a("You can revoke a token any time at "),t("a",{href:"https://github.com/settings/tokens",target:"_blank",rel:"noopener"},"github.com/settings/tokens"),a("; revoking it instantly cuts the app's access.")])],-1)),i(n,{class:"btn btn-accent help-cta",to:{name:"profile"}},{default:l(()=>[...e[10]||(e[10]=[a(" Go to Master Profile ",-1)])]),_:1})])])}}}),G=m(g,[["__scopeId","data-v-e3e0c5fb"]]);export{G as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.