For security reasons it won't be possible to update the files directly from GitHub repositories.
This specific Microsoft Learn module likely uses a public repository for the sample data file.
You may try:
Open Power BI Desktop > Go to "Get Data" > Select "Samples" > Choose a relevant dataset >Click "Connect" > Transform and Load the Data