It’s not “safe” . GitHub allows anonymous users to upload anything they want including malware. You could get infected by downloading/executing code or visiting anything on the “github.io” domain where arbitrary javascript (and therefore 0-day browser exploits) might be found (github.com is safer than github.io).