Skip to content

Latest commit

 

History

History
17 lines (9 loc) · 1.25 KB

README.md

File metadata and controls

17 lines (9 loc) · 1.25 KB

add-pr-comment-proxy

A simple proxy for PR comments. Works well with add-pr-comment. Workaround for GitHub making all token permissions read-only when a fork is submitted for a PR. See this discussion for more detail.

Deploy

Requirements

  • A personal access token with the repo:public_repos scope if you're using this to support a public repo. Your use-case might require other scopes.

Run on Cloud Run

Run on Google Cloud

How it works

This app is a thin Node.js proxy around the create an issue comment GitHub endpoint that allows you to send requests with a GitHub Action's temporary token and create issue comments. It verifies that your request has a valid temporary token, but it's difficult to ensure any more than that. A shared secret cannot be used as GitHub will strip it when the fork's Actions run.