vrchat-community / creator-companion

The Entry Point for Making Things in VRChat
https://vrchat.com/home/download
65 stars 457 forks source link

[BUG] Suddenly unable to access official / curated repository from github actions #542

Closed anatawa12 closed 1 month ago

anatawa12 commented 1 month ago

Describe the bug

Suddenly unable to access official / curated repository from GitHub Actions environment.

This makes our CI broken.

https://github.com/anatawa12/AvatarOptimizer/actions/runs/11319160861/job/31474796084?pr=1257

To Reproduce

  1. Create GitHub Actions accessing https://packages.vrchat.com/official?download or https://packages.vrchat.com/curated?download
  2. return 403

Expected behavior

403 redirect to https://vrchat.github.io/packages/index.json?download should be returned

Screenshots

No response

Related Product

VCC (VRChat Creator Companion)

Product Version

N/A

OS

macOS / Linux

Additional context

No response

anatawa12 commented 1 month ago

https://github.com/anatawa12/vcc-official-curated-repository-unaccessiable-from-github-actions-test/actions/runs/11319884155/job/31476592735

I found that User-Agent is related. with User-Agent: vrc-get/1.8.1 fails

anatawa12 commented 1 month ago

The response says product and version is reuqired but vrc-get is the product name and version is 1.8.1.

anatawa12 commented 1 month ago

even with url to vrc-get repository as a contact, fails. https://github.com/anatawa12/vcc-official-curated-repository-unaccessiable-from-github-actions-test/actions/runs/11319937228/job/31476712621

orels1 commented 1 month ago

Have you tried giving it an email address for contact info?

anatawa12 commented 1 month ago

I added my email address but not working.

https://github.com/anatawa12/vcc-official-curated-repository-unaccessiable-from-github-actions-test/actions/runs/11323032426/job/31484869342#step:2:5

bdunderscore commented 1 month ago

On my side, I've worked around this by directly referencing the github.io VPM repo, but I'm not sure if that's meant to be a stable URL, so it'd be good to fix this issue.

orels1 commented 1 month ago

@anatawa12 @bdunderscore you should be able to continue using vrc-get/<version> (<contact information) user-agent going forward the main rule is providing contact information, otherwise it will get 403 response for non-compliance once more