Skip to content

Questions and answers

The questions that come up most when a repository takes the blueprint. What to do when something doesn't work is on the page Troubleshooting, every question of Copier and every variable and secret in the reference.

Does the blueprint work for my own account or organization?

Yes, for every account and organization on GitHub. A repository made from it names nothing of the blueprint's owner but the links to the blueprint, and every bot acts as an app of yours. You bring two things: a release app, once for all of your repositories, which the checklist helps you register, and your defaults in Copier's settings file, so that each new repository asks only what is new. Renovate runs in a workflow of each repository or as the Mend Renovate app, by the answer renovate_runner. The page Your own account walks through every step, from the copy to a checklist without a cross.

Why do the bots need a release app?

What a workflow does with the token that GitHub gives it, GITHUB_TOKEN, starts no other workflow: a release or update pull request that it opened would run no checks, and a merge with it would start no release. The bots act as a GitHub App of yours instead, whose token starts the checks, may change workflows and creates the release tags, which only this app may create. Only the owner of an app has its private key, so the blueprint can't lend its own. Until the app is there, the bots say in their summary what is missing, rather than fail at a token.

How do I switch the AI of the issue assistant off?

Change the answer issue_assistant_ai on a branch and merge the update in a pull request:

uvx --from copier==9.19.1 copier update --defaults --vcs-ref=:current: --data issue_assistant_ai=false

The settings bot then sets the variable ISSUE_ASSISTANT_AI to off, the environment issue-assistant asks for no secret, and SUPPORT.md tells reporters that no AI reads their issues. Labels, reminders, closing with the release and the commands of the maintainer work as before. Deleting the secret CLAUDE_CODE_OAUTH_TOKEN stops the AI at once as well, but the checklist then asks for it again. --data issue_assistant_ai=true turns the AI on later. The README is yours, so the update leaves the badge of the issue assistant in it: take out its line [![issues: triaged by issue assistant](…)](https://dennis-otto.github.io/issue-assistant/) by hand, and copy it back from the README of the issue assistant when you turn the AI on again.

How do I stop the updates of the blueprint from merging themselves?

Set the repository variable BLUEPRINT_AUTOMERGE to off: every update of the blueprint then waits for you, with its notes and the files it changes in its description. Set it in [variables] of .github/repository.project.toml, which the settings bot applies, or under Settings → Secrets and variables → Actions → Variables. To let them merge themselves again, set it to on there, or delete the variable on GitHub, with gh variable delete BLUEPRINT_AUTOMERGE or on that page: the settings bot sets variables but never deletes one, so a line removed from the file leaves off in place. An update with conflicts always waits, and so does one whose auto-merge you switched off, which stays off.

The other bots that merge their own pull requests have switches of their own:

  • The upstream bot of a Nextcloud app waits with UPSTREAM_AUTOMERGE set to off.
  • Renovate merges what the rules of .github/renovate.json5 let it, which a rule with "automerge": false stops for the packages that it names; the weekly refresh of the lock files merges by itself only from versions at least a week old, and that of Composer merges by itself with versions of any age, as nothing dates them (decision 0174).

How soon does a release of the blueprint arrive?

In a repository of the release app of the blueprint's owner, within minutes: the Rollout starts its blueprint bot right after the release. In every other one, such as one of another owner, within a day: the nightly look of the bot-health bot starts the blueprint bot once the blueprint has a newer release than .copier-answers.yml names and the pull request of the bot doesn't bring it yet. The bot also runs every week. For a release that can't wait, start it by hand, with gh workflow run blueprint-update.yml or under Actions → Blueprint update.

Can a repository be private, and what does it cost?

Yes: python3 .github/blueprint.py create --private creates a private repository. Public repositories run GitHub Actions for free. A private one on GitHub Free has 2,000 minutes a month, and GitHub rounds every job up to a whole minute. The schedules of a project, and the runs that they start, come to about 20 runs a day, about 600 a month; the checks of the pull requests cost more, which is why the blueprint runs a check only where it can change a result and keeps the jobs few (decisions 0009 and 0027).

Some of what the blueprint turns on is free only for public repositories, and the blueprint makes do without it (decision 0082):

Part Public Private, Free Private, Pro or Team With Code Security
Actions free 2,000 minutes 3,000 minutes by the plan
Rulesets for main yes no yes yes
Website Pages artifact Pages Pages
Code scanning yes no (CodeQL skipped) no (CodeQL skipped) yes
Dependency review yes OSV-Scanner OSV-Scanner yes
Secret scanning yes gitleaks gitleaks with Secret Protection
Environments and their secrets yes no yes yes

GitHub Code Security and GitHub Secret Protection are for organizations on GitHub Team or Enterprise. Without them, every required check still runs and passes where nothing is wrong:

  • settings apply reads whether the repository is private and has GitHub Code Security. Without it, it sets the variables CODE_SCANNING and DEPENDENCY_REVIEW to off, and the ruleset of main no longer waits for an analysis of code scanning. What GitHub refuses for the plan, such as the rulesets and GitHub Pages on GitHub Free, it names as a notice, which fails nothing; it sets them once the repository is public or on a plan that has them, and sets the variables back to on.
  • CodeQL doesn't analyze: its terms allow it on private code only with GitHub Code Security or Advanced Security. The check codeql passes with a notice that says so, so the required checks stay as they are.
  • zizmor fails on each finding, with an annotation at its line; OSV-Scanner and the Scorecard keep their findings in their checks.
  • The dependency review leaves the vulnerabilities to the check osv-scanner (pull request), which compares the lock files of the pull request with those of its base. The licenses of new dependencies go unchecked.
  • The website of every run on main is, on GitHub Free, the artifact website, as that of a pull request is.
  • Secret scanning is the check gitleaks of every pull request; GitHub's push protection, which stops a secret before it is pushed, is missing.
  • Environments and their secrets, which the release and the bots use, are for private repositories on GitHub Pro, Team or Enterprise only. On GitHub Free, settings apply may fail on them.

On GitHub Free nothing protects main: a push goes past the checks, so keep to pull requests. python3 .github/blueprint.py checklist shows a private repository's step GitHub Code Security on.

Which files may a project change?

Every file, and each change survives the updates:

  • The files of the project, such as the README, the changelog, the code, the tests, the manifests and the pages of the website, are never overwritten by an update. The reference lists their patterns, from _skip_if_exists of copier.yml.
  • The files of the blueprint, such as the workflows and scripts/check.sh, take the changes of each update: copier update merges them with the changes of the repository, line by line, and marks a conflict only where both changed the same lines.

So that updates rarely conflict, a project adds its own beside the blueprint's files rather than in them: its settings in .github/repository.project.toml, its checks in scripts/check-project.sh and scripts/check-site.sh, their explanations in .github/checks.project.toml, its notes for coding agents in .github/agents.project.md, its own answers of OpenSSF Best Practices in .github/bestpractices.project.toml, never in .bestpractices.json, the hosts and the files of its issue assistant in .github/issue-assistant/config.project.toml, its text about its checks and its releases between the two marked lines of ## Checks and of ## Releases in CONTRIBUTING.md, which an update keeps, and workflows in files of their own. A fix that every repository needs belongs in the blueprint, whose next release brings it to all of them.

A pull request hears about this when it happens. The check lint annotates each changed file of the blueprint, as .github/blueprint/owned.txt lists them, and the report of the PR coach names them with the places above, links a new issue in the blueprint filled in with the files and adds the label blueprint-file. It stays a notice and fails nothing, since such a change can be right; set the repository variable BLUEPRINT_OWNERSHIP to fail to make it a failure. The update of the blueprint and the pull requests of the other bots get no notice.

How do I change an answer later?

Run the update with the new answer on a branch and merge it in a pull request, as app register does in step 3 of the walkthrough, because the rules of main refuse a direct push. With the Copier of the quick start, such as for the topics:

git fetch origin main
git switch --force-create change-the-answers FETCH_HEAD
uvx --from copier==9.19.1 copier update --defaults --vcs-ref=:current: --data 'topics=python, pypi, cli'
git add --all
git commit --signoff --message 'chore: change the answers of the blueprint'
git -c credential.helper= -c 'credential.helper=!gh auth git-credential' push --set-upstream origin HEAD
gh pr create --fill

With pipx in place of uv, the Copier line starts pipx run --spec copier==9.19.1 copier update, and with a Copier of your own, copier update. The first two lines start the branch from the current main of GitHub, also when an earlier change left its branch behind.

--vcs-ref=:current: keeps the release of the blueprint that the repository is on, and --defaults takes every other answer from .copier-answers.yml. The push goes through GitHub CLI, whose sign-in may change workflows. The rules of main also ask for a signature on every commit: turn commit.gpgsign on or add --gpg-sign to the commit, with a key as the troubleshooting sets it up, and the check signed commits names a commit without one and how to sign it again. The settings bot applies what the answer changes in .github/repository.toml, such as a variable or the topics, after the merge.

My code replaced the sample: how do I stop the updates from treating it as the sample?

Answer no to sample_code, and take back what the update deletes. The update deletes each file that only the sample renders, such as docs/index.md and src/ of your own, because the new answer no longer renders them, so the second command restores them from the last commit:

uvx --from copier==9.19.1 copier update --defaults --vcs-ref=:current: --data sample_code=false
git diff --name-only --diff-filter=D -z | xargs -0 git restore --

Check that git status then lists only .copier-answers.yml and the pages that speak of the sample, such as CONTRIBUTING.md, and commit them. From then on the files are yours alone, and no update of the blueprint touches them.

A workflow of mine can't be started (404)

When gh workflow run answers HTTP 404: workflow … not found on the default branch for a workflow whose file is on main, GitHub hasn't registered it, and then not even its schedule starts it. A run registers its workflow, and a push that changes its file does; the first push of a new repository may register none (#652), so a workflow that only a schedule, a release or a person starts can stay unknown, such as the blueprint bot, which the Rollout then can't start. python3 .github/blueprint.py checklist names each one, and in the folder of the repository, run:

python3 .github/blueprint.py workflows register

It opens a pull request with one commit that GitHub signs, which adds a comment to the end of each workflow that GitHub doesn't know. Merge it once its checks are green: the merge is a push that changes them, which registers them. Then run the command again, and it opens the pull request that takes the comments out, so that the files are the blueprint's once more. create does the first step by itself when GitHub still doesn't know a workflow a minute after its push (guide).

How do I leave the blueprint?

Delete .github/workflows/blueprint-update.yml, and no update of the blueprint comes any more; the Rollout of the blueprint leaves a repository without the blueprint bot out. Everything else stays and works as it is, since it is a file of your repository: the workflows, the checks, the settings as code with .github/blueprint.py and the other bots. The license of the blueprint, MIT No Attribution, asks nothing of what you keep, not even a notice. Keep .copier-answers.yml if you might come back: copier update starts from the release that it names.

To pause the updates rather than leave, set BLUEPRINT_AUTOMERGE to off and leave the update pull request open; a newer release moves it on.