Found a valid 'DigiCert High Assurance EV Root CA' certificate from https://curl.se and store it into the ca-store this seems to have fixed the trust of github.com and githubusercontent.com again
or
Adding -k to curl in /opt/pihole/gravity.sh fixes the gravity downloading