Following yesterday's topic of making sure my content isn't mirrored to GitHub, ...

@algernon@come-from.mad-scientist.club

Following yesterday's topic of making sure my content isn't mirrored to GitHub, I did a test. The idea yesterday was to use GitHub CI to abuse the service so much that it gets automatically flagged and taken down.

To do that, I need to make sure the workflows only run on GitHub, and not on Codeberg or any self-hosted Forgejo that might mirror the repo. Since Forgejo emulates github actions, and even tries to run .github/workflows, there's a real risk.

Fortunately, if both .forgejo/workflows and .github/workflows are present, Forgejo runs the former only, and GitHub only the latter. Thus, I can put whatever abuse I wish into the latter! As an extra guardrail, I will make the latter exit early, without doing anything naughty, if FORGEJO_ACTIONS is set.