I am giving a coding lesson where students can upload answers to our quizzes using personal, private repositories. So here's how the repository structure of my organization looks like:
my_organization/student_1_project
my_organization/student_2_project
my_organization/...
my_organization/student_n_project
I would like to run a private GitHub Action at any push on a student repository. This Action would run partial reviews of the student's work, and notify me of stuffs. Its code would need to be unreachable from students, of course, otherwise providing hints & solutions.
I have three questions:
- Can my workflow in e.g.
my_organization/student_2_projectbe to use a private actionmy_organization/my_private_action? It seems like yes thanks toactions/checkout@v2(see here) but pretty sure that involves playing with keys or tokens or secrets - I'm not so at ease with that and currently get an error although it does exist:
Error: fatal: repository 'https://github.com/my_organization/my_private_action' not found
Can it prevent the student (owner/admin of
my_organization/student_2_project) to see the code inmy_organization/my_private_action?With the same constraints, could the private action be hosted in another organization?
Thanks a lot for your help!