According to GitHub's project for selecting markup libraries by content type, it uses https://github.com/gjtorikian/commonmarker for Markdown, commonmarker describing itself as a "Ruby wrapper for the comrak (CommonMark parser) Rust crate".
GitHub flavoured Markdown is a superset of CommonMark.