Skip to content

Secure Communication Between Actions and App #24700

Discussion options

You must be logged in to vote

I don’t think this functionality exists, but that’s an interesting idea… and I think there may be options to achieve this now.

The first option is to use the GITHUB_TOKEN associated with the Run, as this token will remain active while the Run is in progress. The upload endpoint of your App would accept the GITHUB_TOKEN from the Action and use it to verify access to the target repository.

POST https://example.com/uploads

{
"repository": "examples/example-repository",
"token": "${{ github.token }}",
"data": {}, // your upload data
}

Then you can use the 200 or 401 response of this request to pass or fail the check.

curl --request GET \
  --url https://api.github.com/repos/:repository \
  -…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment