Using GitHub at the University of Waterloo
GitHub Enterprise Cloud is available to the University of Waterloo through the GitHub Campus Program. It supports source code management, version control, and software development, and is used by multiple faculties, departments, and administrative units. IST is the system owner.
An Information Risk Assessment by Information Security Services (ISS) rated GitHub Enterprise Cloud as Medium risk. It found the platform appropriate for software development and source code management involving information classified up to Restricted, provided repository owners follow recommended security practices and governance requirements. The platform is intended for source code and related software development artifacts.
In this article
What can go in a repository
Classification | Allowed? |
|---|---|
Public, Confidential, Restricted | Yes, in a private repository. Follow the owner responsibilities below. |
Highly Restricted | Projects intending to store or process Highly Restricted information should engage ISS for additional consultation to determine whether GitHub is an appropriate solution and whether compensating controls or additional safeguards are required. |
Examples of Highly Restricted information include:
Personal information that could facilitate identity theft or fraud.
Personal Health Information (PHI).
Sensitive research data where unauthorized disclosure could result in significant harm.
Security architecture, configurations, or technical documentation that could materially assist a cyber attack.
Source code, scripts, or configurations that provide privileged access to Restricted or Highly Restricted systems or information.
Not sure how your data is classified? See the data classification definitions on the IST AI tools and University data page.
Do not store in a repository
Passwords, API keys, tokens, certificates, or cryptographic keys in plaintext
Security investigation artifacts
Third-party investigation reports
Log files
Handling secrets
Use approved secrets management solutions where possible, instead of storing secrets in the repository. If a secret must live in the repository, it must be encrypted, consistent with approved technical controls.
Secret scanning and push protection are on for all private repositories. If a push contains something GitHub recognizes as a secret, the push is blocked and GitHub explains what it found. You can bypass the block by giving a reason. Bypasses are recorded.
If a secret has been committed, removing it from the code does not remove it from the repository's history. Rotate the secret.
If you own a repository
Each repository should have an assigned owner responsible for access management and content oversight. The practices below are recommended for every repository. How you apply them is up to your team.
Restrict access. Grant access to authorized users based on business need. Review membership periodically and remove access when it is no longer required.
Document the repository. Record its purpose and intended data classification, for example in the README or the repository description.
Review settings. Periodically check repository settings and security controls to make sure they remain appropriate for the information being stored.
Consider branch protection. Consider protecting main or production branches, requiring pull requests before merging, and requiring peer review for code changes.
Act on alerts. Respond to Dependabot and secret scanning alerts, and apply security updates in a timely manner.
Set workflow permissions. The default Actions workflow token is read-only. If a workflow needs to push, create releases, comment, or publish packages, declare that in a
permissions:block in the workflow file. Pin third-party actions to a full commit SHA rather than a version tag, since a tag can be moved to point at different code.Add review for Restricted content. Code scanning is not available on private repositories, so consider additional review and testing practices for repositories containing Restricted information.
Archive when done. Archive repositories that are no longer maintained (Settings > General > Archive this repository). Archived repositories are read-only and can be unarchived at any time. If you leave a project, make sure the repository still has an assigned owner.
Already handled by IST
These are set across the organization:
Access to University-managed GitHub resources requires SAML single sign-on through Microsoft Entra ID with Duo MFA
Two-factor authentication is required on every GitHub account in the enterprise
Members see only the repositories they own or have been granted access to
Members can create private repositories only, and only org owners can change a repository's visibility
Forking of private repositories is turned off
Force pushes to and deletion of default branches are blocked
Dependabot alerts are on for every repository
Secret scanning and push protection are on for every private repository
The default Actions workflow token is read-only
Workflows triggered by pull requests from external contributors need approval before they run
Pull request and review rules are not set centrally. Each team decides what fits their workflow. Code scanning is not available on private repositories under the current licensing model.
Who to contact
ISS (dl-ist-securityawareness@uwaterloo.ca): projects intending to store or process Highly Restricted information.
Legal and Immigration Services (LIS) (pia@uwaterloo.ca): projects intending to store, process, or transmit personal information, to determine whether a Privacy Impact Assessment is required.
IST (campusapps@uwaterloo.ca): access to the enterprise, public or open-source projects, and questions about this page.
Need help?
Contact the IST Service Desk online or 519-888-4567 ext. 44357.
Article feedback
If you’d like to share any feedback about this article, please let us know.