Learn security best practices and keep your project’s contributions—and contributors—safe.
Start free course Join 4336 others!
This course will show you how to build, host, and maintain a secure repository on GitHub. By following simple security best practices, you can rest easy knowing your project is secure for contributors and contributions today and in the future.
Collaboration is key to building great software. As you welcome more contributions, keeping your project secure becomes more important than ever.
In this course, you’ll learn how to:
You'll be able to answer questions like:
Our Octocat memory game is a fun simple project for you to work with as you learn security strategies.
We assume you know GitHub concepts before you start this course. If you need a review, try out Introduction to GitHub. We assume you understand what a package and package manager or dependency manager is.
This project can use GitHub pages to host the memory game. The game uses some minimal JavaScript and CSS. You don't need to work with either in this course. You won't need to do anything outside of the GitHub interface for this course.
This is a great course for anyone who has a GitHub repository, public or private. These practices will help keep your project safe. This is also a great course for anyone who wants to start a new project on GitHub.
Enable settings in your repository for the next activities.
Find the vulnerable dependency, and comment with the suggested update version.
Edit the file in the pull request to update the dependency.
Merge the pull request you've opened to update the vulnerability dependency.
The .gitignore
file is ready to be edited in an open pull request. Add the .env
file to the .gitignore
file.
Merge the second pull request with updates to the .gitignore
file.
20 minutes
All public courses on Learning Lab are free.
A set of resources leveraged by Microsoft employees to ramp up on Git and GitHub. Progress of this...
After you've mastered the basics, learn some of the fun things you can do on GitHub. From GitHub...
See how collaboration works on GitHub and start building great things, together.
Merge conflicts are a normal part of working in Git. Learn why they happen and how to resolve them...
Learn how to create a site or blog from your GitHub repositories with GitHub Pages.
Learn new skills by completing fun, realistic projects in your very own GitHub repository.