Skip to content

Public Repo

You'll take a private repo you've been sitting on, scrub the secrets, add a license and a README, and flip the switch to public.

About

Everyone has a private repo they meant to share. It has a hard-coded password in commit three and no README. Making it public properly takes an evening: scrub the secrets, add a license, write the two paragraphs a stranger needs, and flip the switch. What counts is the repo public with a license and a README. What doesn't count is pushing to npm or PyPI, which is a Coding badge. This badge is about the repo itself and the decision to open it up.

At a glance

Per requirement
15 XP
Completion bonus
75 XP
Requirements
5
Takes
One evening
Skill level
Beginner (done it a few times)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
On your own

Requirements

  1. 1
    Pick a private repo and run a secrets scan on its full history. gitleaks and trufflehog are free and run in about a minute. Check the whole history, not just the current files. If the scan finds a real key, rotate the key first, then decide whether to rewrite history or start a fresh repo. A rotated key is safe, and a deleted file is not. Take a screenshot of the scan result. Photo
  2. 2
    Add a LICENSE file and a one line license field in the project metadata. Pick from the licenses you understand, and MIT is fine if you don't mind what people do with it. Use the real text with the correct year and your name. Take a screenshot of the committed file. Photo
  3. 3
    Write a README with what it does, how to run it, and what state it's in. 'Works for me, untested elsewhere' is an honest state, and so is 'Abandoned, use X instead'. Three short sections is plenty. Take a screenshot of the README. Photo
  4. 4
    Make the repo public and link it somewhere one other person will see it. Change the visibility setting, then post the link in a chat or a forum thread, or send it to one friend who'd use it. Take a screenshot of the public repo page. Photo
  5. 5
    Decide what happens when a stranger opens an issue, and say so in the README. Turn on issue notifications to an inbox you actually read. Decide now, in one line, whether you take PRs, and 'I'll look at bug fixes but not features' is a perfectly good answer. Take a screenshot of the line in the README. Photo