If your GitHub account is compromised, you may be held responsible for any violations or actions taken by the unauthorized party using your credentials.
GitHub users grant the platform a broad license to reproduce and display their publicly posted content, and accept significant limitations on GitHub's liability — including a cap of 12 months of fees paid in damages. GitHub reserves the right to suspend or terminate accounts for policy violations, with or without notice in some cases, which could disrupt access to critical code repositories. You can export and back up your repositories at any time through GitHub's data export tools at https://github.com/settings/admin.