Hi! I've been to add a secret sync for Github with...
# infisical-help
a
Hi! I've been to add a secret sync for Github with "Repository Environment" scope but it it fails when trying to list my repo environments in the dropdown menu. I'm seeing an error in the console for this request: > <https//app.infisical.com/api/v1/app connections/github/21b1bad3 bc4a 4fbb 90a9 7f54ea410521/environments?repo=shortcut&owner=lyfegame|https//app.infisical.com/api/v1/app-connections/github/ID/environments?repo=REPO&owner=>OWNER
Copy code
{
  "reqId": "req-N5kGNaCkzVTQLu",
  "statusCode": 500,
  "message": "Something went wrong",
  "error": "InternalServerError"
}
(app.infisical) @Jake (Infisical)?
s
Hi @Adrian Duermael, looking at the logs we're receiving a 403 (Forbidden) from GitHub; do the other requests succeed? IE you see repositories listed, just the environments fail?
a
@Scott (Infisical) Yes, only the environments! I added them to the token though, in read/write.
s
Which method did you use for your app connection? OAuth or GitHub App?
g
@Scott (Infisical) the GitHub app connection method is
Personal Access Token
a
Yes 👆
We really need to solve this today if possible @Scott (Infisical), we're exploring different tools to centralize all our secrets, Infisical would be our preferred option but this issue is a real blocker.
s
@Adrian Duermael thanks for the info, let us look into replicating this and get back to you
a
Thank you!
s
Hey @Adrian Duermael, we were able to replicate your issue and will look into it - in the interim we recommend using either the OAuth or GitHub App methods as these will work with repository environment selection
✅ 1
a
@Scott (Infisical) thanks! sounds good, great it works with other methods. 👍