Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!
openssl genrsa -des3 -out rootCA.key 4096
REPO=rammus/action-demo | |
FILE=README.md | |
INPUT_GITHUB_TOKEN= | |
# https://docs.github.com/en/free-pro-team@latest/rest/reference/repos#get-repository-content | |
curl \ | |
-H "Accept: application/vnd.github.v3+json" \ | |
-H "Authorization: token $INPUT_GITHUB_TOKEN" \ | |
"https://api.github.com/repos/${REPO}/contents/${FILE}" |