3 ms·
> construct a file in such a way that it can create an updated copy of itself and save it back to the server Is there some way to accomplish this through GitHu
by dogtierstatus 2y ago
> construct a file in such a way that it can create an updated copy of itself and save it back to the server
Is there some way to accomplish this through GitHub? Like the single html file running on GitHub.io pages can commit the changes to its repo?
- wizzwizz4 2y agoYou should be able to use the Smart HTTP protocol with HTTP Basic Auth (https://git-scm.com/docs/http-protocol https://git-scm.com/docs/http-protocol) to push a locally-created commit. Forgejo supports CORS here, but I don't know whether GitHub does.
- mdaniel 2y agoBoth GitHub and GitLab have killed http basic auth https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-username-and-password https://docs.github.com/en/rest/authentication/authenticatin... https://docs.gitlab.com/ee/topics/git/troubleshooting_git.html#error-on-git-fetch-http-basic-access-denied https://docs.gitlab.com/ee/topics/git/troubleshooting_git.ht... That's not to say one couldn't still do what you're describing via other headers, I'm just saying "<input name=username><input name=password>" won't get it done