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

Update workflow to work with PRs. #149

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Update workflow to work with PRs. #149

merged 1 commit into from
Apr 15, 2024

Conversation

Yurihaia
Copy link
Collaborator

This updates the workflow to work with PRs. Specifically, it allows external branches PRing against this repository to access the binary archive repository deploy key.

While this is potentially vulnerable, testing has determined that it is not. As described in pr.yaml, the pull_request_target workflow trigger can only activate the workflow in the base repository, not the workflow files in the PR. This means the only point of "vulnerability" would be the build script. However, the github token used in the pr workflow has read only access to this repository, and the SSH key to the archive repository is both used with persist-credentials: false, and is also read only. The only reason the archive repository is private is to not explicitly just redistribute base Hollow Knight assets publicly. It is not actually a catastrophic security vulnerability for the files in that repository to be leaked, considering anyone who has bought hollow knight could do the same.

56 and I tested these things and we determined it is safe to use.

@Yurihaia Yurihaia merged commit 210c814 into master Apr 15, 2024
4 checks passed
@Yurihaia Yurihaia deleted the workflow-update-2 branch April 15, 2024 22:43
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.

1 participant