Students charged for github codespaces when using classroom #88769
Hi everyone,According to the documentation GitHub Codespaces when used with GitHub Classroom should charge the organization for usage, not the student. However, that is not happening right now. I have students in my class that have "used up" their 120 free hours.
Have I misconfigured something? I can give links to the classroom, etc. if that helps. Thanks for the support! |
Replies: 3 comments 1 reply
|
Thanks for reaching out @powerjg. When using Codespaces, the students need to ensure that when they are accessing the Codespace from the organisation, and that the Codespace is showing that the organisation is paying for it. This is a good way to teach students about correctly navigating to the repo and not forking it and using it on their account. This screenshot shows what the students should be seeing: When teaching the lesson, make sure the students can see on their screens that your org is paying for the Codespace. If you want to enable students to do their own things with Codespaces, you'll need to add all the students to the org you are using instead of having them fork the repo to their own account. Since it's GitHub Classroom, make sure the classroom is set up on the organisation that you've setup Codespaces for, and ensure students are working from the Classroom. Are there any specific errors or ways that students are accessing the Codespace through their personal accounts? |
|
Does this mean the students need to be "invited" to the organization and cannot be "outside collaborators"? Is there an easy way in github classroom to automatically do this? I just tested with a test personal account, and I see that it does not say "paid for by Edit: I just tested with my test account. I invited myself to the repo, but it still says "Codespace usage for this repository is paid for by |

Aha! I believe I figured out the problem. For the organization that I created for the classroom, the default was for codespace ownership to be "user" not "organization". Changing this radio button seemed to have worked.