Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set bot useragent for GitHub Action #84

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

HebaruSan
Copy link
Member

@HebaruSan HebaruSan commented Nov 29, 2021

Motivation

See KSP-CKAN/CKAN#3490; when the GitHub Action uses netkan.exe and ckan.exe, its User-Agent does not identify it as a bot, which it ought to do, see KSP-SpaceDock/SpaceDock#436.

Changes

Based on the same examples used for that other pull request, the GitHub Action's User-Agent is now:

Mozilla/5.0 (compatible; Netkanbot/1.0; CKAN; +https://github.com/KSP-CKAN/xKAN-meta_testing)

I think parsers will just check whether bot occurs in the browser family.

Blocking external dependencies

The HyperEdit and Graphotron mods use a combination of strange URLs:

... and the User-Agent string to identify Netkan requests. Requesting these URLs with the wrong User-Agent string results in an HTTP status 403 error. Before we merge these changes, we must work with @Ezriilc to update the kerbaltek.com site to support the new User-Agent formats as well as the old format.

@HebaruSan HebaruSan merged commit 489972f into KSP-CKAN:master Dec 1, 2021
@HebaruSan HebaruSan deleted the fix/useragent branch December 1, 2021 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants