Open dscho opened 6 months ago
You need to set the path to the manifest file using --manifest
e.g.
npx register-github-app-cli --manifest app.yml
I was not able to reproduce any problem using latest Firefox on Mac OS
thanks can you please share the contents of app.yml
?
thanks can you please share the contents of
app.yml
?
@gr2m of course!
name: gr2m-reproducer
url: https://github.com/apps/gr2m-reproducer
hook_attributes:
url: https://gr2m-reproducer-github-app.azurewebsites.net/api/Reproducer
public: false
default_permissions:
actions: read
administration: read
checks: read
contents: read
deployments: read
emails: read
environments: read
issues: read
metadata: read
pull_requests: read
@gr2m any insights into the reason why it does what the video above shows?
I just tried with your exact app.yml
and I was not able to reproduce the problem
You should get redirected to https://github.com/settings/apps/manifest, but you are redirected to https://github.com/settings/apps/new instead. I looked into my requests log in the developer console, This should be the relevant request that doesn't seem to be working correctly in your case:
It looks like the https://github.com/settings/apps/manifest page relies on cookies. Maybe you have some add-on or more restrictive cookie settings that prevent this flow from working correctly? I tried loading https://github.com/settings/apps/new without any cookies which redirected me to https://github.com/settings/apps/new, but it also showed an error message that I haven't seen in your screen recording.
Sorry, I'm puzzled, not sure what else I can do to help figure this out
It looks like the https://github.com/settings/apps/manifest page relies on cookies.
Oh, that would be a plausible explanation: The latest Firefox is pretty serious about preventing tracking, including suppression of cookies. That's a pity. I really prefer working with Firefox, particularly because of that tracking prevention.
I have Firefox 127 which I think is the latest version, and it does work, even in private browsing mode. I also use Firefox as my primary browser on my personal machine. The problem must be something else. Can you try disabling all plugins?
Can you try disabling all plugins?
Not really. I am a heavy used of the multi-account containers, and pretty much everything would stop working as I need if I disabled that extension. I only have one other extension enabled, a password manager, and I need that, too.
So I guess I'll just live with having to copy/paste the link into Chrome or Edge to be able to use this highly useful node.js script.
Aha! If I paste the URL in a regular new tab, the POST
is blocked by my multi-account container extensions because github.com
is configured to always open in a specific container. If I paste the URL in a new container tab of that specific container, it works even in Firefox! So the problem is not Firefox per se, but the multi-account container feature being somehow incompatible with the way register-github-app
is designed to work, unless I find a way to some how convince that extension to open that localhost
URL already in the correct container.
hmm maybe we could build a web-based version with a domain that you could add github.com container? I'm not sure how this works, I never used that feature
Please avoid duplicates
Reproducible test case
npx register-github-app-cli
Please select the environment(s) that are relevant to your bug report
Versions
Using
npx
, expectregister-github-app
to be at the latest version; Firefox v125.0.1What happened?
With Firefox v125.0.1, the manifest seems to be ignored, and a completely empty form is shown, the top looks like this:
When I open the link in Edge instead, it works as expected, the form shows only the app's name.
Would you be interested in contributing a fix?