Skip to content

POST /repos/{owner}/{repo}/git/blobs is blocked by proxy policy #35

Description

@dnyw4l3n13

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions