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