Issue
When attempting to push a branch via the GitHub REST API (as a workaround for missing SSH keys), creating a git blob is blocked by the proxy:
gh api repos/funfair-tech/funfair-server-ethereum/git/blobs --method POST --input /tmp/blob_payload.json
Error:
{"message":"Operation blocked by proxy policy","reason":"Creating git blobs is a commit-building operation","method":"POST","path":"/repos/funfair-tech/funfair-server-ethereum/git/blobs"}
Context
- Source repository:
funfair-tech/funfair-server-ethereum
- Working on: issue #998 (increase code coverage for FunFair.Ethereum.Blocks.Stream)
- Environment: No SSH keys configured for github.com;
gh auth git-credential only serves creds for github-api.markridgwell.com
- The
POST /repos/.../git/blobs endpoint is needed to push commits via the git data API as a fallback when SSH/HTTPS git push is unavailable
Expected behaviour
The git data API (blobs, trees, commits, refs) should be allowed for write operations so that push can proceed via the API when git push via SSH is unavailable.
Or, alternatively, git push via SSH/HTTPS should be made available in this environment.
Issue
When attempting to push a branch via the GitHub REST API (as a workaround for missing SSH keys), creating a git blob is blocked by the proxy:
Error:
{"message":"Operation blocked by proxy policy","reason":"Creating git blobs is a commit-building operation","method":"POST","path":"/repos/funfair-tech/funfair-server-ethereum/git/blobs"}Context
funfair-tech/funfair-server-ethereumgh auth git-credentialonly serves creds forgithub-api.markridgwell.comPOST /repos/.../git/blobsendpoint is needed to push commits via the git data API as a fallback when SSH/HTTPS git push is unavailableExpected behaviour
The git data API (blobs, trees, commits, refs) should be allowed for write operations so that push can proceed via the API when git push via SSH is unavailable.
Or, alternatively, git push via SSH/HTTPS should be made available in this environment.