[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75MSVWRC1XDRCZSGAXHNQD4":3,"skill-same:01M75MSVWRC1XDRCZSGAXHNQD4":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M75MSVWRC1XDRCZSGAXHNQD4","public-repo-ci-isolation",null,"Use when configuring CI for a public or fork-accepting repository, or choosing runners for untrusted pull requests. Untrusted fork code must never run on a trusted self-hosted runner with access to secrets or internal network.","selamy-labs\u002Fagent-skills","selamy-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287832944?v=4","01M75MDKJ0CKAM94KZ7TWQJM5Q","01M75MDKJNP3TATHAW1MX1FWM6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpublic-repo-ci-isolation\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: public-repo-ci-isolation\ndescription: Use when configuring CI for a public or fork-accepting repository, or choosing runners for untrusted pull requests. Untrusted fork code must never run on a trusted self-hosted runner with access to secrets or internal network.\n---\n\n# Public Repo CI Isolation\n\nNever run a public repository's CI on a trusted, persistent self-hosted runner.\n\nA pull request from a fork can change the workflow or the code it runs. On a\nself-hosted runner that PR executes attacker-controlled code on your own\ninfrastructure, with whatever that runner can reach: secrets, cloud credentials,\nthe internal network, the host filesystem, and the runner's registration token.\nThis is the classic self-hosted-runner-on-public-repo vulnerability.\n\nThere is no cost argument against isolating: public repositories get free\nhosted CI minutes, so trusted self-hosted runners buy you nothing here.\n\n## When to use\n\n- A repository is public, or accepts pull requests from forks.\n- You are choosing `runs-on` for a workflow that runs on `pull_request`.\n- You have self-hosted runners and someone proposes pointing a public repo at them.\n- A workflow uses `pull_request_target` or otherwise runs with secrets present.\n\n## The rule\n\n- Untrusted-fork CI runs on **ephemeral, isolated, single-use** runners (or\n  hosted runners), never on persistent self-hosted ones.\n- A self-hosted setup that cannot isolate untrusted PRs must **loud-reject or\n  require approval** for them. It must never silently queue them forever or run\n  them quietly.\n- Trusted self-hosted runners are for trusted work only: the default branch,\n  pushes by maintainers, or PRs that a maintainer has explicitly approved to run.\n\n## Safe patterns\n\n- **Hosted by default for public repos.** Point `pull_request` workflows at\n  hosted runners. Free minutes, fresh VM per job, no access to your network.\n- **Ephemeral single-use runners.** If self-hosted is required, each job gets a\n  throwaway runner that is destroyed after one job and has no standing secrets or\n  network reach. A leaked registration token then buys one disposable VM, not a\n  foothold.\n- **Approval gate.** Require a maintainer to approve workflow runs for first-time\n  or fork contributors before any runner picks the job up. Make the unapproved\n  state visible, not a silent hang.\n- **Split trusted from untrusted.** Run untrusted build\u002Ftest on isolated runners;\n  run privileged steps (deploy, publish, anything with secrets) only on the\n  default branch after merge.\n\n## `pull_request_target` and secret exposure\n\n`pull_request_target` runs in the context of the base repository, so secrets are\navailable. If you also check out the PR head and execute it, you have handed\nattacker code your secrets.\n\n- Do not check out and run fork-PR code under `pull_request_target`.\n- Use `pull_request_target` only for trusted, read-only metadata work (labeling,\n  triage) that does not execute the PR's contents.\n- Never expose secrets to a job that runs untrusted code.\n\n## Anti-patterns\n\n- Pointing a public repo's `pull_request` workflow at a persistent self-hosted\n  runner that holds or can reach secrets.\n- Letting untrusted fork PRs silently queue forever instead of loud-rejecting or\n  gating them on approval.\n- `pull_request_target` plus a checkout of the PR head plus a build\u002Ftest\u002Frun step.\n- Reusing one long-lived self-hosted runner across trusted and untrusted jobs.\n\n## Done standard\n\nFor every public or fork-accepting repo: untrusted-PR jobs land on hosted or\nephemeral isolated runners, no trusted self-hosted runner can pick them up,\nunapproved untrusted PRs are visibly rejected or gated rather than silently run,\nand no workflow runs fork code with secrets in scope. Make these runner and\napproval settings declarative, not a one-off live edit (see [[iac-not-ad-hoc]]).\n","# Public Repo CI Isolation\n\nNever run a public repository's CI on a trusted, persistent self-hosted runner.\n\nA pull request from a fork can change the workflow or the code it runs. On a\nself-hosted runner that PR executes attacker-controlled code on your own\ninfrastructure, with whatever that runner can reach: secrets, cloud credentials,\nthe internal network, the host filesystem, and the runner's registration token.\nThis is the classic self-hosted-runner-on-public-repo vulnerability.\n\nThere is no cost argument against isolating: public repositories get free\nhosted CI minutes, so trusted self-hosted runners buy you nothing here.\n\n## When to use\n\n- A repository is public, or accepts pull requests from forks.\n- You are choosing `runs-on` for a workflow that runs on `pull_request`.\n- You have self-hosted runners and someone proposes pointing a public repo at them.\n- A workflow uses `pull_request_target` or otherwise runs with secrets present.\n\n## The rule\n\n- Untrusted-fork CI runs on **ephemeral, isolated, single-use** runners (or\n  hosted runners), never on persistent self-hosted ones.\n- A self-hosted setup that cannot isolate untrusted PRs must **loud-reject or\n  require approval** for them. It must never silently queue them forever or run\n  them quietly.\n- Trusted self-hosted runners are for trusted work only: the default branch,\n  pushes by maintainers, or PRs that a maintainer has explicitly approved to run.\n\n## Safe patterns\n\n- **Hosted by default for public repos.** Point `pull_request` workflows at\n  hosted runners. Free minutes, fresh VM per job, no access to your network.\n- **Ephemeral single-use runners.** If self-hosted is required, each job gets a\n  throwaway runner that is destroyed after one job and has no standing secrets or\n  network reach. A leaked registration token then buys one disposable VM, not a\n  foothold.\n- **Approval gate.** Require a maintainer to approve workflow runs for first-time\n  or fork contributors before any runner picks the job up. Make the unapproved\n  state visible, not a silent hang.\n- **Split trusted from untrusted.** Run untrusted build\u002Ftest on isolated runners;\n  run privileged steps (deploy, publish, anything with secrets) only on the\n  default branch after merge.\n\n## `pull_request_target` and secret exposure\n\n`pull_request_target` runs in the context of the base repository, so secrets are\navailable. If you also check out the PR head and execute it, you have handed\nattacker code your secrets.\n\n- Do not check out and run fork-PR code under `pull_request_target`.\n- Use `pull_request_target` only for trusted, read-only metadata work (labeling,\n  triage) that does not execute the PR's contents.\n- Never expose secrets to a job that runs untrusted code.\n\n## Anti-patterns\n\n- Pointing a public repo's `pull_request` workflow at a persistent self-hosted\n  runner that holds or can reach secrets.\n- Letting untrusted fork PRs silently queue forever instead of loud-rejecting or\n  gating them on approval.\n- `pull_request_target` plus a checkout of the PR head plus a build\u002Ftest\u002Frun step.\n- Reusing one long-lived self-hosted runner across trusted and untrusted jobs.\n\n## Done standard\n\nFor every public or fork-accepting repo: untrusted-PR jobs land on hosted or\nephemeral isolated runners, no trusted self-hosted runner can pick them up,\nunapproved untrusted PRs are visibly rejected or gated rather than silently run,\nand no workflow runs fork code with secrets in scope. Make these runner and\napproval settings declarative, not a one-off live edit (see [[iac-not-ad-hoc]]).\n",{"name":5,"description":7},"main","54007b08157feb09e5bb9d7ff5ce4ddd21625dbf","skills\u002Fpublic-repo-ci-isolation",3,"https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills","https:\u002F\u002Fselamy.dev","https:\u002F\u002Fgithub.com\u002Fselamy-labs","2026-11-15 03:50:58",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add selamy-labs\u002Fagent-skills --skill public-repo-ci-isolation",{"tool":37,"command":38},"bunx","bunx skills add selamy-labs\u002Fagent-skills --skill public-repo-ci-isolation",{"tool":40,"command":41},"pnpm","pnpm dlx skills add selamy-labs\u002Fagent-skills --skill public-repo-ci-isolation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Fskills\u002Fpublic-repo-ci-isolation\u002FSKILL.md",true,[],[46,53,60,67,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M75MY70JMSNFHQX63G90SKZ7","silence-phrase","A seemingly normal skill.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fsilence-phrase\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M75MY5PKVKY60M8H2DFTW58C","selamy-bad-skill","This skill has a vendor prefix that should be rejected.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fprefixed-name\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M75MY1TKXCH6WYN9ET0W4T02","oversized-description","This is a very long description that contains way too many words and should be rejected by the validator because it exceeds the forty five word limit that is enforced by the naming lint checker which ensures skill descriptions stay concise and readable for humans and machines alike without unnecessary verbosity or padding","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Foversized-description\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M75MY0SZ7EKT99NWJEJ8HKS2","missing-frontmatter","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmissing-frontmatter\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M75MXYMBREE6D7KRR87YM4DH","malicious-skill","A poisoned skill used only as a negative fixture for the security gate.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fmalicious-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M75MXX2B7AC2QSSRRQQXTA0N","leaking-org-name","A skill about something.","https:\u002F\u002Fgithub.com\u002Fselamy-labs\u002Fagent-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fleaking-org-name\u002FSKILL.md",[],[]]