repo
scope to use this endpoint.environment:write
repository permission to use this endpoint.curl --location --request POST 'https://api.github.com/repositories//environments//variables' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "USERNAME",
"value": "octocat"
}'
null