[{"data":1,"prerenderedAt":1018},["ShallowReactive",2],{"navigation_docs":3,"-engineering-github-personal-access-token":449,"-engineering-github-personal-access-token-surround":1014},[4,8,72,102,248,294,331,352,445],{"title":5,"path":6,"stem":7},"Introduction","\u002Fintroduction","0.introduction",{"title":9,"icon":10,"path":11,"stem":12,"children":13,"page":67},"Company","i-lucide-building-2","\u002Fcompany","1.company",[14,18,22,26,30,34,38,42,46,50,54,68],{"title":15,"path":16,"stem":17},"About","\u002Fcompany\u002Fabout","1.company\u002F0.about",{"title":19,"path":20,"stem":21},"Values","\u002Fcompany\u002Fvalues","1.company\u002F1.values",{"title":23,"path":24,"stem":25},"Communication","\u002Fcompany\u002Fcommunication","1.company\u002Fcommunication",{"title":27,"path":28,"stem":29},"Competition","\u002Fcompany\u002Fcompetition","1.company\u002Fcompetition",{"title":31,"path":32,"stem":33},"Hybrid Working","\u002Fcompany\u002Fhybrid-working","1.company\u002Fhybrid-working",{"title":35,"path":36,"stem":37},"Manchester Office","\u002Fcompany\u002Foffice","1.company\u002Foffice",{"title":39,"path":40,"stem":41},"Operations","\u002Fcompany\u002Foperations","1.company\u002Foperations",{"title":43,"path":44,"stem":45},"Policies","\u002Fcompany\u002Fpolicies","1.company\u002Fpolicies",{"title":47,"path":48,"stem":49},"Problem Statement","\u002Fcompany\u002Fproblem-statement","1.company\u002Fproblem-statement",{"title":51,"path":52,"stem":53},"Product Strategy","\u002Fcompany\u002Fproduct-strategy","1.company\u002Fproduct-strategy",{"title":55,"path":56,"stem":57,"children":58,"page":67},"Products","\u002Fcompany\u002Fproducts","1.company\u002Fproducts",[59,63],{"title":60,"path":61,"stem":62},"Capability Exchange","\u002Fcompany\u002Fproducts\u002Fcapability-exchange","1.company\u002Fproducts\u002Fcapability-exchange",{"title":64,"path":65,"stem":66},"ESProfiler Platform","\u002Fcompany\u002Fproducts\u002Fesprofiler","1.company\u002Fproducts\u002Fesprofiler",false,{"title":69,"path":70,"stem":71},"Security","\u002Fcompany\u002Fsecurity","1.company\u002Fsecurity",{"title":73,"icon":74,"path":75,"stem":76,"children":77,"page":67},"People Ops","i-lucide-users","\u002Fpeople-ops","2.people-ops",[78,82,86,90,94,98],{"title":79,"path":80,"stem":81},"Compensation","\u002Fpeople-ops\u002Fcompensation","2.people-ops\u002Fcompensation",{"title":83,"path":84,"stem":85},"Education","\u002Fpeople-ops\u002Feducation","2.people-ops\u002Feducation",{"title":87,"path":88,"stem":89},"Expenses","\u002Fpeople-ops\u002Fexpenses","2.people-ops\u002Fexpenses",{"title":91,"path":92,"stem":93},"Holiday & Leave","\u002Fpeople-ops\u002Fleave","2.people-ops\u002Fleave",{"title":95,"path":96,"stem":97},"Onboarding","\u002Fpeople-ops\u002Fonboarding","2.people-ops\u002Fonboarding",{"title":99,"path":100,"stem":101},"Recruitment","\u002Fpeople-ops\u002Frecruitment","2.people-ops\u002Frecruitment",{"title":103,"icon":104,"path":105,"stem":106,"children":107,"page":67},"Engineering","i-lucide-rocket","\u002Fengineering","3.engineering",[108,168,189,210,232,240,244],{"title":109,"path":110,"stem":111,"children":112,"page":67},"Contributing","\u002Fengineering\u002Fcontributing","3.engineering\u002Fcontributing",[113,117,121,125,129,133,146,155],{"title":114,"path":115,"stem":116},"Development Setup","\u002Fengineering\u002Fcontributing\u002Fdevelopment-setup","3.engineering\u002Fcontributing\u002F1.development-setup",{"title":118,"path":119,"stem":120},"Engineering Operations","\u002Fengineering\u002Fcontributing\u002Fengineering-operations","3.engineering\u002Fcontributing\u002F2.engineering-operations",{"title":122,"path":123,"stem":124},"Documentation","\u002Fengineering\u002Fcontributing\u002Fdocumentation","3.engineering\u002Fcontributing\u002F3.documentation",{"title":126,"path":127,"stem":128},"Agentic Coding","\u002Fengineering\u002Fcontributing\u002Fagentic-coding","3.engineering\u002Fcontributing\u002F4.agentic-coding",{"title":130,"path":131,"stem":132},"Coding Standards","\u002Fengineering\u002Fcontributing\u002Fcoding-standards","3.engineering\u002Fcontributing\u002F5.coding-standards",{"title":134,"path":135,"stem":136,"children":137,"page":67},"Back End","\u002Fengineering\u002Fcontributing\u002Fback-end","3.engineering\u002Fcontributing\u002Fback-end",[138,142],{"title":139,"path":140,"stem":141},"API Guidelines","\u002Fengineering\u002Fcontributing\u002Fback-end\u002Fapi-guidelines","3.engineering\u002Fcontributing\u002Fback-end\u002Fapi-guidelines",{"title":143,"path":144,"stem":145},"LLM Prompts & Langfuse Integration","\u002Fengineering\u002Fcontributing\u002Fback-end\u002Fllm-prompts","3.engineering\u002Fcontributing\u002Fback-end\u002Fllm-prompts",{"title":147,"path":148,"stem":149,"children":150,"page":67},"Database","\u002Fengineering\u002Fcontributing\u002Fdatabase","3.engineering\u002Fcontributing\u002Fdatabase",[151],{"title":152,"path":153,"stem":154},"Database Volumes","\u002Fengineering\u002Fcontributing\u002Fdatabase\u002Fdatabase-refresh","3.engineering\u002Fcontributing\u002Fdatabase\u002Fdatabase-refresh",{"title":156,"path":157,"stem":158,"children":159,"page":67},"Front End","\u002Fengineering\u002Fcontributing\u002Ffront-end","3.engineering\u002Fcontributing\u002Ffront-end",[160,164],{"title":161,"path":162,"stem":163},"Data Attributes","\u002Fengineering\u002Fcontributing\u002Ffront-end\u002Fdata-attributes","3.engineering\u002Fcontributing\u002Ffront-end\u002Fdata-attributes",{"title":165,"path":166,"stem":167},"Testing","\u002Fengineering\u002Fcontributing\u002Ffront-end\u002Ftesting","3.engineering\u002Fcontributing\u002Ffront-end\u002Ftesting",{"title":169,"path":170,"stem":171,"children":172},"Deployment","\u002Fengineering\u002Fdeployment","3.engineering\u002Fdeployment\u002F0.index",[173,174,177,181,185],{"title":169,"path":170,"stem":171},{"title":60,"path":175,"stem":176},"\u002Fengineering\u002Fdeployment\u002Fcapability-exchange","3.engineering\u002Fdeployment\u002Fcapability-exchange",{"title":178,"path":179,"stem":180},"Langfuse Deployment","\u002Fengineering\u002Fdeployment\u002Fecs-langfuse-deployment","3.engineering\u002Fdeployment\u002Fecs-langfuse-deployment",{"title":182,"path":183,"stem":184},"ESP Platform Configuration","\u002Fengineering\u002Fdeployment\u002Fesp-platform-configuration","3.engineering\u002Fdeployment\u002Fesp-platform-configuration",{"title":186,"path":187,"stem":188},"Platform","\u002Fengineering\u002Fdeployment\u002Fplatform","3.engineering\u002Fdeployment\u002Fplatform",{"title":190,"path":191,"stem":192,"children":193,"page":67},"Github","\u002Fengineering\u002Fgithub","3.engineering\u002Fgithub",[194,198,202,206],{"title":195,"path":196,"stem":197},"Packages","\u002Fengineering\u002Fgithub\u002Fpackages","3.engineering\u002Fgithub\u002Fpackages",{"title":199,"path":200,"stem":201},"Personal Access Token","\u002Fengineering\u002Fgithub\u002Fpersonal-access-token","3.engineering\u002Fgithub\u002Fpersonal-access-token",{"title":203,"path":204,"stem":205},"Troubleshooting","\u002Fengineering\u002Fgithub\u002Ftroubleshooting","3.engineering\u002Fgithub\u002Ftroubleshooting",{"title":207,"path":208,"stem":209},"Workflows","\u002Fengineering\u002Fgithub\u002Fworkflows","3.engineering\u002Fgithub\u002Fworkflows",{"title":211,"path":212,"stem":213,"children":214},"Platform Ops","\u002Fengineering\u002Fplatform-ops","3.engineering\u002Fplatform-ops\u002F0.index",[215,216,220,224,228],{"title":211,"path":212,"stem":213},{"title":217,"path":218,"stem":219},"Production Database","\u002Fengineering\u002Fplatform-ops\u002Fdatabase-connection","3.engineering\u002Fplatform-ops\u002Fdatabase-connection",{"title":221,"path":222,"stem":223},"New Tenant Creation","\u002Fengineering\u002Fplatform-ops\u002Fnew-tenant-creation","3.engineering\u002Fplatform-ops\u002Fnew-tenant-creation",{"title":225,"path":226,"stem":227},"Releases","\u002Fengineering\u002Fplatform-ops\u002Frelease","3.engineering\u002Fplatform-ops\u002Frelease",{"title":229,"path":230,"stem":231},"Versioning","\u002Fengineering\u002Fplatform-ops\u002Fversioning","3.engineering\u002Fplatform-ops\u002Fversioning",{"title":186,"path":233,"stem":234,"children":235,"page":67},"\u002Fengineering\u002Fplatform","3.engineering\u002Fplatform",[236],{"title":237,"path":238,"stem":239},"useAPI","\u002Fengineering\u002Fplatform\u002Fuse-api","3.engineering\u002Fplatform\u002Fuse-api",{"title":241,"path":242,"stem":243},"Project Management","\u002Fengineering\u002Fproject-management","3.engineering\u002Fproject-management",{"title":245,"path":246,"stem":247},"Tools","\u002Fengineering\u002Ftools","3.engineering\u002Ftools",{"title":249,"icon":250,"path":251,"stem":252,"children":253,"page":67},"Design","i-lucide-palette","\u002Fdesign","4.design",[254,275,279,283,287,290],{"title":255,"path":256,"stem":257,"children":258,"page":67},"Personas","\u002Fdesign\u002Fpersonas","4.design\u002F0.personas",[259,263,267,271],{"title":260,"path":261,"stem":262},"CISO - Simon","\u002Fdesign\u002Fpersonas\u002F01-ciso-simon","4.design\u002F0.personas\u002F01-ciso-simon",{"title":264,"path":265,"stem":266},"Head of Cyber - Harry","\u002Fdesign\u002Fpersonas\u002F02-head-of-cyber-harry","4.design\u002F0.personas\u002F02-head-of-cyber-harry",{"title":268,"path":269,"stem":270},"Security Architect - Sasha","\u002Fdesign\u002Fpersonas\u002F03-security-architect-sasha","4.design\u002F0.personas\u002F03-security-architect-sasha",{"title":272,"path":273,"stem":274},"Procurement Officer - Paige","\u002Fdesign\u002Fpersonas\u002F04-procurement-officer-paige","4.design\u002F0.personas\u002F04-procurement-officer-paige",{"title":276,"path":277,"stem":278},"Design Thinking","\u002Fdesign\u002Fdesign-thinking","4.design\u002F1.design-thinking",{"title":280,"path":281,"stem":282},"Design & Development","\u002Fdesign\u002Fdesign-and-development","4.design\u002F3.design-and-development",{"title":284,"path":285,"stem":286},"Branding","\u002Fdesign\u002Fbranding","4.design\u002F4.branding",{"title":245,"path":288,"stem":289},"\u002Fdesign\u002Ftools","4.design\u002F5.tools",{"title":291,"path":292,"stem":293},"Customer Success","\u002Fdesign\u002Fworking-with-customers","4.design\u002F6.working-with-customers",{"title":295,"icon":296,"path":297,"stem":298,"children":299,"page":67},"Sales","i-lucide-dollar-sign","\u002Fsales","4.sales",[300,320,324,328],{"title":301,"path":302,"stem":303,"children":304,"page":67},"Process","\u002Fsales\u002Fprocess","4.sales\u002F0.process",[305,309,313,317],{"title":306,"path":307,"stem":308},"Lead","\u002Fsales\u002Fprocess\u002Flead","4.sales\u002F0.process\u002F0.lead",{"title":310,"path":311,"stem":312},"Deal Qualification","\u002Fsales\u002Fprocess\u002Fqualification","4.sales\u002F0.process\u002F1.qualification",{"title":314,"path":315,"stem":316},"Close","\u002Fsales\u002Fprocess\u002Fclose","4.sales\u002F0.process\u002F2.close",{"title":95,"path":318,"stem":319},"\u002Fsales\u002Fprocess\u002Fonboarding","4.sales\u002F0.process\u002Fonboarding",{"title":321,"path":322,"stem":323},"Meetings","\u002Fsales\u002Fmeetings","4.sales\u002Fmeetings",{"title":325,"path":326,"stem":327},"Metrics","\u002Fsales\u002Fmetrics","4.sales\u002Fmetrics",{"title":245,"path":329,"stem":330},"\u002Fsales\u002Ftools","4.sales\u002Ftools",{"title":332,"icon":333,"path":334,"stem":335,"children":336,"page":67},"Marketing","i-lucide-book-image","\u002Fmarketing","5.marketing",[337,341,345,348],{"title":338,"path":339,"stem":340},"Content","\u002Fmarketing\u002Fcontent","5.marketing\u002Fcontent",{"title":342,"path":343,"stem":344},"Messaging","\u002Fmarketing\u002Fmessaging","5.marketing\u002Fmessaging",{"title":245,"path":346,"stem":347},"\u002Fmarketing\u002Ftools","5.marketing\u002Ftools",{"title":349,"path":350,"stem":351},"Website","\u002Fmarketing\u002Fwebsite","5.marketing\u002Fwebsite",{"title":353,"icon":354,"path":355,"stem":356,"children":357,"page":67},"AI & Data Ops","i-lucide-database","\u002Fdata-ops","6.data-ops",[358,362,370,395,416,420],{"title":359,"path":360,"stem":361},"Account Portal (CAS)","\u002Fdata-ops\u002Faccount-portal","6.data-ops\u002Faccount-portal",{"title":60,"path":363,"stem":364,"children":365,"page":67},"\u002Fdata-ops\u002Fcapability-exchange","6.data-ops\u002Fcapability-exchange",[366],{"title":367,"path":368,"stem":369},"Leaderboard Calculation","\u002Fdata-ops\u002Fcapability-exchange\u002Fleaderboard-calculation","6.data-ops\u002Fcapability-exchange\u002Fleaderboard-calculation",{"title":371,"path":372,"stem":373,"children":374,"page":67},"Data Management","\u002Fdata-ops\u002Fdata-management","6.data-ops\u002Fdata-management",[375,379,383,387,391],{"title":376,"path":377,"stem":378},"Adding Products","\u002Fdata-ops\u002Fdata-management\u002Fadding-products","6.data-ops\u002Fdata-management\u002Fadding-products",{"title":380,"path":381,"stem":382},"Adding Vendors","\u002Fdata-ops\u002Fdata-management\u002Fadding-vendors","6.data-ops\u002Fdata-management\u002Fadding-vendors",{"title":384,"path":385,"stem":386},"Framework Mapping","\u002Fdata-ops\u002Fdata-management\u002Fframework-mapping","6.data-ops\u002Fdata-management\u002Fframework-mapping",{"title":388,"path":389,"stem":390},"Refreshing Vendors","\u002Fdata-ops\u002Fdata-management\u002Frefreshing-vendors","6.data-ops\u002Fdata-management\u002Frefreshing-vendors",{"title":392,"path":393,"stem":394},"Reviewing Draft Vendors","\u002Fdata-ops\u002Fdata-management\u002Freviewing-draft-vendors","6.data-ops\u002Fdata-management\u002Freviewing-draft-vendors",{"title":396,"path":397,"stem":398,"children":399,"page":67},"LLM Ops","\u002Fdata-ops\u002Fllm-ops","6.data-ops\u002Fllm-ops",[400,404,408,412],{"title":401,"path":402,"stem":403},"Agents","\u002Fdata-ops\u002Fllm-ops\u002Fagents","6.data-ops\u002Fllm-ops\u002F1.agents",{"title":405,"path":406,"stem":407},"ESPi Architecture & Query Flow","\u002Fdata-ops\u002Fllm-ops\u002Fespi-architecture","6.data-ops\u002Fllm-ops\u002F2.espi-architecture",{"title":409,"path":410,"stem":411},"Evaluating Agents","\u002Fdata-ops\u002Fllm-ops\u002Fevaluations","6.data-ops\u002Fllm-ops\u002F3.evaluations",{"title":413,"path":414,"stem":415},"Benchmarking ESPi","\u002Fdata-ops\u002Fllm-ops\u002Fbenchmarking-espi","6.data-ops\u002Fllm-ops\u002F4.benchmarking-espi",{"title":417,"path":418,"stem":419},"Message Queues","\u002Fdata-ops\u002Fmessage-queues","6.data-ops\u002Fmessage-queues",{"title":421,"path":422,"stem":423,"children":424,"page":67},"Models","\u002Fdata-ops\u002Fmodels","6.data-ops\u002Fmodels",[425,429,433,437,441],{"title":426,"path":427,"stem":428},"Universal Framework Mapper Vision","\u002Fdata-ops\u002Fmodels\u002Funiversal-framework-mapper-vision","6.data-ops\u002Fmodels\u002F1.universal-framework-mapper-vision",{"title":430,"path":431,"stem":432},"Framework Description Model (FDM)","\u002Fdata-ops\u002Fmodels\u002Fframework-description-model","6.data-ops\u002Fmodels\u002F2.framework-description-model",{"title":434,"path":435,"stem":436},"Relationship Definition Model (RDM)","\u002Fdata-ops\u002Fmodels\u002Frelationship-definition-model","6.data-ops\u002Fmodels\u002F3.relationship-definition-model",{"title":438,"path":439,"stem":440},"Relationship Mapping Model (RMM)","\u002Fdata-ops\u002Fmodels\u002Frelationship-mapping-model","6.data-ops\u002Fmodels\u002F4.relationship-mapping-model",{"title":442,"path":443,"stem":444},"Platform Framework Matrix V2","\u002Fdata-ops\u002Fmodels\u002Fplatform-framework-matrix-v2","6.data-ops\u002Fmodels\u002F5.platform-framework-matrix-v2",{"title":446,"path":447,"stem":448},"Glossary","\u002Fglossary","glossary",{"id":450,"title":199,"body":451,"description":906,"extension":1009,"links":1010,"meta":1011,"navigation":792,"path":200,"seo":1012,"stem":201,"__hash__":1013},"docs\u002F3.engineering\u002Fgithub\u002Fpersonal-access-token.md",{"type":452,"value":453,"toc":990},"minimark",[454,459,463,466,469,473,482,485,519,522,533,550,552,559,566,571,632,636,639,699,720,722,726,731,781,793,795,799,845,847,851,854,887,891,897,907,911,915,921,925,944,946,950],[455,456,458],"h2",{"id":457},"personal-access-tokens-pats","Personal Access Tokens (PATs)",[460,461,462],"p",{},"A Personal Access Token (PAT) is used to authenticate with GitHub in place of a password — for example, when pulling private packages, publishing packages, or using the GitHub API from scripts and CI\u002FCD pipelines.",[460,464,465],{},"GitHub offers two types of PATs:",[467,468],"hr",{},[455,470,472],{"id":471},"token-types","Token Types",[474,475,477,478],"h3",{"id":476},"fine-grained-tokens-recommended-for-most-tasks","Fine-grained Tokens ",[479,480,481],"em",{},"(recommended for most tasks)",[460,483,484],{},"Fine-grained tokens are the newer, more secure token format introduced by GitHub. They offer:",[486,487,488,496,507,513],"ul",{},[489,490,491,495],"li",{},[492,493,494],"strong",{},"Repository-scoped access"," — you select exactly which repositories the token can access, rather than granting access to everything.",[489,497,498,501,502,506],{},[492,499,500],{},"Granular permissions"," — instead of broad scopes (e.g. ",[503,504,505],"code",{},"repo","), you choose specific read\u002Fwrite permissions per resource (Issues, Pull Requests, Contents, etc.).",[489,508,509,512],{},[492,510,511],{},"Expiry enforcement"," — fine-grained tokens require an expiry date (maximum 1 year).",[489,514,515,518],{},[492,516,517],{},"Owner approval"," — if your organisation enforces it, tokens may require admin approval before they become active.",[460,520,521],{},"Fine-grained tokens are ideal for:",[486,523,524,527,530],{},[489,525,526],{},"Accessing or cloning specific repositories",[489,528,529],{},"Operating GitHub Actions with least-privilege access",[489,531,532],{},"Anything where limiting blast radius is important",[534,535,536],"blockquote",{},[460,537,538,541,542,545,546,549],{},[492,539,540],{},"Limitation:"," Fine-grained tokens ",[492,543,544],{},"cannot"," currently authenticate against the ",[492,547,548],{},"GitHub Packages \u002F npm registry",". If your task involves installing or publishing packages, you must use a Classic token.",[467,551],{},[474,553,555,556],{"id":554},"classic-tokens-required-for-github-packages","Classic Tokens ",[479,557,558],{},"(required for GitHub Packages)",[460,560,561,562,565],{},"Classic tokens use a broad, scope-based permission model and have been available since GitHub's early API days. While less granular than fine-grained tokens, they are currently the ",[492,563,564],{},"only supported token type"," for GitHub Packages authentication.",[567,568,570],"h4",{"id":569},"when-you-must-use-a-classic-token","When you must use a Classic token",[572,573,574,587],"table",{},[575,576,577],"thead",{},[578,579,580,584],"tr",{},[581,582,583],"th",{},"Use Case",[581,585,586],{},"Classic Token Required?",[588,589,590,606,617,624],"tbody",{},[578,591,592,603],{},[593,594,595,598,599,602],"td",{},[503,596,597],{},"npm install"," \u002F ",[503,600,601],{},"yarn install"," from a private GitHub Package registry",[593,604,605],{},"✅ Yes",[578,607,608,615],{},[593,609,610,611,614],{},"Publishing a package to GitHub Packages (",[503,612,613],{},"npm publish",")",[593,616,605],{},[578,618,619,622],{},[593,620,621],{},"Reading\u002Finstalling packages in CI\u002FCD (e.g. GitHub Actions, local dev)",[593,623,605],{},[578,625,626,629],{},[593,627,628],{},"General GitHub API access or repository operations",[593,630,631],{},"❌ Fine-grained preferred",[567,633,635],{"id":634},"required-scopes-for-package-work","Required scopes for package work",[460,637,638],{},"When creating a Classic token for package consumption or development, select the following scopes:",[572,640,641,651],{},[575,642,643],{},[578,644,645,648],{},[581,646,647],{},"Scope",[581,649,650],{},"Purpose",[588,652,653,663,673,686],{},[578,654,655,660],{},[593,656,657],{},[503,658,659],{},"read:packages",[593,661,662],{},"Download \u002F install packages from the GitHub Package Registry",[578,664,665,670],{},[593,666,667],{},[503,668,669],{},"write:packages",[593,671,672],{},"Publish packages to the GitHub Package Registry",[578,674,675,679],{},[593,676,677],{},[503,678,505],{},[593,680,681,682,685],{},"Required when the package repository is ",[492,683,684],{},"private"," — allows the registry to verify access",[578,687,688,693],{},[593,689,690],{},[503,691,692],{},"delete:packages",[593,694,695,698],{},[479,696,697],{},"(Optional)"," Remove package versions you own",[534,700,701],{},[460,702,703,706,707,710,711,713,714,716,717,719],{},[492,704,705],{},"Tip:"," If you only need to ",[492,708,709],{},"consume"," (install) packages and not publish them, ",[503,712,659],{}," + ",[503,715,505],{}," is sufficient. Only add ",[503,718,669],{}," if you are actively developing and publishing packages.",[467,721],{},[455,723,725],{"id":724},"how-to-create-a-classic-token","How to Create a Classic Token",[534,727,728],{},[460,729,730],{},"This is the token type you will need for local development and CI\u002FCD package access.",[732,733,734,745,760,767,774],"ol",{},[489,735,736,737,744],{},"Go to ",[738,739,743],"a",{"href":740,"rel":741},"https:\u002F\u002Fgithub.com\u002Fsettings\u002Ftokens\u002Fnew",[742],"nofollow","GitHub Tokens (Classic)"," — ensure you are logged into the correct account.",[489,746,747,748,751,752,755,756,759],{},"Give the token a descriptive ",[492,749,750],{},"Note",", e.g. ",[503,753,754],{},"Package Development"," or ",[503,757,758],{},"Package Read-Only",".",[489,761,762,763,766],{},"Set an ",[492,764,765],{},"Expiration"," — choose an appropriate window (e.g. 90 days). Avoid \"No expiration\" for security reasons.",[489,768,769,770,773],{},"Under ",[492,771,772],{},"Select scopes",", tick the scopes relevant to your use case (see table above).",[489,775,776,777,780],{},"Click ",[492,778,779],{},"Generate token"," and copy it immediately — GitHub will not show it again.",[782,783],"iframe",{"width":784,"height":785,"src":786,"className":787,"title":789,"frameBorder":790,"allow":791,"allowFullScreen":792},560,315,"https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FWJI2V86zs2A",[788],"mx-auto","YouTube video player","0","accelerometer;",true,[467,794],{},[455,796,798],{"id":797},"how-to-create-a-fine-grained-token","How to Create a Fine-grained Token",[732,800,801,808,813,818,824,834,840],{},[489,802,736,803,744],{},[738,804,807],{"href":805,"rel":806},"https:\u002F\u002Fgithub.com\u002Fsettings\u002Fpersonal-access-tokens\u002Fnew",[742],"GitHub Fine-grained Tokens",[489,809,747,810,759],{},[492,811,812],{},"Token name",[489,814,762,815,817],{},[492,816,765],{}," (required — up to 365 days).",[489,819,769,820,823],{},[492,821,822],{},"Resource owner",", select the organisation or your personal account.",[489,825,769,826,829,830,833],{},[492,827,828],{},"Repository access",", choose ",[479,831,832],{},"Only select repositories"," and pick the repositories needed.",[489,835,769,836,839],{},[492,837,838],{},"Permissions",", expand each section and set only the minimum permissions required.",[489,841,776,842,844],{},[492,843,779],{}," and copy it immediately.",[467,846],{},[455,848,850],{"id":849},"configuring-projects-to-use-tokens","Configuring projects to use tokens",[460,852,853],{},"This setup works for both local development and CI\u002FCD pipelines.",[732,855,856,866],{},[489,857,858,859,755,862,865],{},"Configure projects to use tokens in the ",[503,860,861],{},".npmrc",[503,863,864],{},".yarnrc.yml"," files.",[489,867,868,869,872,873],{},"Set the ",[503,870,871],{},"NODE_AUTH_TOKEN"," environment variable to your Classic token when applicable in:\n",[486,874,875,881],{},[489,876,877,878],{},"GitHub Repository Secrets for ",[492,879,880],{},"CI\u002FCD pipelines",[489,882,883,884,759],{},"User Account System environment variables for ",[492,885,886],{},"local development",[474,888,890],{"id":889},"_1-for-yarn-projects","1. For Yarn Projects",[460,892,893,894,896],{},"Once you have a Classic token, configure npm to authenticate against the GitHub Package Registry by adding the following to the project-level ",[503,895,864],{},":",[898,899,904],"pre",{"className":900,"code":902,"language":903},[901],"language-text","npmScopes:\n  es-profiler:\n    npmAlwaysAuth: false\n    npmAuthToken: ${NODE_AUTH_TOKEN:-}\n    npmRegistryServer: \"https:\u002F\u002Fnpm.pkg.github.com\"\n","text",[503,905,902],{"__ignoreMap":906},"",[474,908,910],{"id":909},"_1-for-npm-projects","1. For NPM Projects",[460,912,893,913,896],{},[503,914,861],{},[898,916,919],{"className":917,"code":918,"language":903},[901],"\u002F\u002Fnpm.pkg.github.com\u002F:_authToken=${NODE_AUTH_TOKEN}\n@es-profiler:registry=https:\u002F\u002Fnpm.pkg.github.com\n",[503,920,918],{"__ignoreMap":906},[474,922,924],{"id":923},"_2-for-local-development","2. For Local Development",[534,926,927],{},[460,928,929,932,933,936,937,940,941,759],{},[492,930,931],{},"Never commit your token to source control."," Use environment variables or secrets management instead. In CI\u002FCD pipelines, store the token as a secret (e.g. ",[503,934,935],{},"GITHUB_TOKEN"," or a custom secret) and reference it in your ",[503,938,939],{},"npmrc"," via ",[503,942,943],{},"${TOKEN_ENV_VAR}",[467,945],{},[455,947,949],{"id":948},"best-practices","Best Practices",[486,951,952,958,967,978,984],{},[489,953,954,957],{},[492,955,956],{},"Rotate tokens regularly"," — set a calendar reminder before your token expires.",[489,959,960,963,964,966],{},[492,961,962],{},"Use the minimum required scopes"," — avoid ",[503,965,505],{}," on Classic tokens unless the package repository is private.",[489,968,969,972,973,759],{},[492,970,971],{},"Revoke unused tokens"," — audit your tokens periodically at ",[738,974,977],{"href":975,"rel":976},"https:\u002F\u002Fgithub.com\u002Fsettings\u002Ftokens",[742],"github.com\u002Fsettings\u002Ftokens",[489,979,980,983],{},[492,981,982],{},"Never share tokens"," — each developer and each CI\u002FCD pipeline should have its own token.",[489,985,986,989],{},[492,987,988],{},"Prefer fine-grained tokens"," for any non-package GitHub API usage.",{"title":906,"searchDepth":991,"depth":991,"links":992},2,[993,994,1001,1002,1003,1008],{"id":457,"depth":991,"text":458},{"id":471,"depth":991,"text":472,"children":995},[996,999],{"id":476,"depth":997,"text":998},3,"Fine-grained Tokens (recommended for most tasks)",{"id":554,"depth":997,"text":1000},"Classic Tokens (required for GitHub Packages)",{"id":724,"depth":991,"text":725},{"id":797,"depth":991,"text":798},{"id":849,"depth":991,"text":850,"children":1004},[1005,1006,1007],{"id":889,"depth":997,"text":890},{"id":909,"depth":997,"text":910},{"id":923,"depth":997,"text":924},{"id":948,"depth":991,"text":949},"md",null,{},{"description":906},"mV45VhJHcUtyhT5mLV2CMK-EPx1m4TKfPDuvFtYUnGI",[1015,1016],{"title":195,"path":196,"stem":197,"description":906,"children":-1},{"title":203,"path":204,"stem":205,"description":1017,"children":-1},"Troubleshooting guide for GitHub issues.",1795106632046]