nextcloud / nextcloud/integration_github
'Default access token' doesn't seem to allow link previews at all
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 55
- Forks
- 13
- Ø Merge
- 8 T. 9 Std.
- Gemergte PRs (30 T.)
- 10
Beschreibung
Hi
I want to enable link previews in Nextcloud documents for Github issues that are in private repositories.
I don't wish for my Nextcloud users to connect their own Github accounts to their Nextcloud accounts via OAuth.
I created a personal access token (the 'beta' kind, with finely scoped Read-Only access to: code, discussions, issues, metadata, and pull requests
I added that PAT to the global administrative settings in Nextcloud under settings/admin/connected-accounts as the 'Default access token'.
I ticked the box 'Enable Github link previews'
I still get 'Github API error Not Found' widgets appear in my documents when I paste a link to a Github issue in a private repository that this Github user has access to. The widget wants me to go to my personal account settings in Nextcloud to configure Github access, but I thought the 'default' access token should take care of it.
What's the problem? Is it the beta 'fine-grained' PAT method? I don't want to use the Classic method because I don't want Nextcloud to have write access to private repos through this token.
Otherwise, what are the scopes required for the PAT to work, with the beta method?
Do I still have to set up an OAuth2.0 app even though my use case is limited to link previews?
I am running Nextcloud 25.0.8, Github integration app 1.0.15
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne beim Ablauf settings/admin/connected-accounts und der Einstellung „Enable Github link previews“, und reproduziere die Not Found-Antwort mit einem fein abgestuften schreibgeschützten Token unter Nextcloud 25.0.8 und der GitHub-Integrations-App 1.0.15. Als erledigt gilt die Ermittlung, ob das Standardtoken für private Issue-Vorschauen unterstützt wird, die erforderlichen Scopes oder die OAuth-Anforderung zu identifizieren und das Verhalten zu dokumentieren oder zu korrigieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- github, javascript
- Bereich
- api, backend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100