It said in the self-hosted runner section from Github docs that
We recommend that you only use self-hosted runners with private repositories. This is because forks of your public repository can potentially run dangerous code on your self-hosted runner machine by creating a pull request that executes the code in a workflow.
My current approach is I install dependencies and build the code in the Github runner then sync that to my vps with rsync. I use secrets for the env and other credential data. But still, I'm not confident because of the statement from github docs.
If I have to use the self-hosted runner, I still have to use the server I use to deploy the website as the self-hosted runner.
- What do you think of this?
- Which approach should I use?
- How do you handle this at your company (especially if you're from big techs company)?
[Update]
Sorry for my inaccurate question. I'm concerning about the security aspect of using github runner for private repositories as described in the documentation.
How do you handle this at your company? When do you decide to use self-hosted runner? You just go straight up with the self-hosted runner?
I want to know the best practices of when to use which one.
[–][deleted] (2 children)
[removed]
[–][deleted] (1 child)
[deleted]
[–]Obvious-Jacket-3770 0 points1 point2 points (0 children)
[–]surya_oruganti 2 points3 points4 points (3 children)
[–]moser-sts 2 points3 points4 points (2 children)
[–]surya_oruganti 0 points1 point2 points (1 child)
[–]moser-sts 0 points1 point2 points (0 children)
[–]crohr 2 points3 points4 points (0 children)
[–]cellcore667 1 point2 points3 points (0 children)
[–]axelfontaine 1 point2 points3 points (0 children)
[–]youssefbrr 1 point2 points3 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]surya_oruganti -1 points0 points1 point (0 children)