Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wallet-ext] Workflow run wallet extension #4766

Merged
merged 4 commits into from
Sep 26, 2022
Merged

Conversation

Jordan-Mysten
Copy link
Contributor

@Jordan-Mysten Jordan-Mysten commented Sep 23, 2022

It was noticed that pull-requests from forks don't correctly comment on PRs. This is due to the security of github tokens on forked repos, where they do not have write access to the repo. The solution here is to use some indirection through workflow_call, which can comment on the PR but importantly does not build the extension (which is potentially a security issue).

This is based on guidance from Github: https://securitylab.github.com/research/github-actions-preventing-pwn-requests

Note that this won't work (and therefore we can't test this) until this merges, as workflow_call only runs from the main branch. I tested the best I could locally using act though.

@Jordan-Mysten Jordan-Mysten marked this pull request as ready for review September 23, 2022 20:06
Copy link
Contributor

@randall-Mysten randall-Mysten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@Jordan-Mysten Jordan-Mysten changed the title [wip][wallet-ext] Workflow run wallet extension [wallet-ext] Workflow run wallet extension Sep 23, 2022
@Jordan-Mysten Jordan-Mysten merged commit aa469e4 into main Sep 26, 2022
@Jordan-Mysten Jordan-Mysten deleted the jordan--workflow-run branch September 26, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants