#GitHub Actions bot blocked by IP range - exemption request

17 messages · Page 1 of 1 (latest)

charred ivy
#

Hi! I run a wiki at aeroaddons.miraheze.org and I'm using a GitHub Actions bot to automatically sync addon data from a GitHub repo to my wiki via the MediaWiki API. The bot is getting blocked because GitHub Actions runs on Microsoft Azure, and the IP range 4.154.0.0/16 is globally blocked on Miraheze.

Is it possible to get an exemption for my wiki so the bot can make API edits? The bot account is "Addon_Updater" and it only edits pages and uploads images on my wiki.

Thanks!

onyx falcon
#

Please login and most global blocks won't apply

#

Including that one

charred ivy
onyx falcon
charred ivy
#

I am.

onyx falcon
#

From GitHub actions?

charred ivy
#

Ah. I see, my bad.

onyx falcon
#

Can you provide the full error you're getting then?

charred ivy
#

I'm not getting an error, but i can give the build log.

onyx falcon
#

That would be the definition of an error

charred ivy
#

Ah. My bad, I was not exactly computing english lol.
I was thinking build failing.

onyx falcon
#

Login result: Failed
Upload 'template.png': {'error': {'code': 'fileexists-shared-forbidden', 'info': 'A file with this name exists already in the shared file repository. If you still want to upload your file, please go back and use a new name. [[File:Template.png|thumb|center|Template.png]]', 'stasherrors': [{'message': 'uploadstash-exception', 'params': ['UploadStashNotLoggedInException', 'No user is logged in, files must belong to users.'], 'code': 'uploadstash-exception', 'type': 'error'}], 'invalidparameter': 'filename', '*': 'See *** for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/&gt; for notice of API deprecations and breaking changes.'}, 'servedby': 'mw191'}

#

The login result failed is probably the most important bit, you will also need to change your api request to ignore warnings

#

None of this has anything to do with a block

charred ivy
#

Hm.