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