Conversation
The e2e job runs on a self-hosted runner on a host with LAN access and live Slack/Spotify credentials on disk, in a public repository. Guard the job on github.actor so it cannot run for anyone else. This is a backstop, not the primary control: a pull request can edit this file, so the repository's fork-PR approval setting is what actually gates untrusted code. Both together.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
if: github.actor == 'htilly'to thee2ejob, plus a comment explaining why.Why: the
e2ejob targets a self-hosted runner on a host that has LAN access and live Slack/Spotify/OpenAI credentials on disk, and this repository is public (38 forks, 136 stars).Scope of the guard — please read: this is a backstop, not the primary control. For
pull_requestevents GitHub uses the workflow files from the PR head, so a PR can simply delete thisif:. The control that actually gates untrusted code is the repository setting Settings → Actions → Fork pull request workflows from outside collaborators → Require approval for all external contributors, which was changed fromfirst_time_contributorstoall_external_contributorsalongside this PR.record-historyis deliberately left unguarded: it runs onubuntu-latest, not the self-hosted runner.Not merged — for your review.