launchdarkly / ld-find-code-refs

Build tool for automatically sending feature flag code references to LaunchDarkly
https://launchdarkly.com
Other
45 stars 34 forks source link

error parsing current commit sha: repository does not exist #313

Closed dc185334 closed 11 months ago

dc185334 commented 1 year ago

Since has issue with GH action I did try to run it from CLI locally. MacOS.

ld-find-code-refs -t api-*-*-*-*-* --dir /Users/DC185334/repos/office/apps/office/src/ -p XXX --branch develop --repoName office --repoUrl https://github.com/my-org/office

ERROR: 2023/01/10 13:46:09 coderefs.go:37: error parsing current commit sha: repository does not exist

So, since repo does not exist I did change dir to parent folder: ld-find-code-refs -t api-166bdf29-f11f-456c-8f4a-ec5155c65d84 --dir /Users/DC185334/WORK/office -p XXX --branch develop --repoName office --repoUrl https://github.com/my-org/office

Now error is: ERROR: 2023/01/10 13:51:23 helpers.go:39: error creating repository: LaunchDarkly API responded with status code 403 Add the --ignoreServiceErrors flag to ignore this error

jazanne commented 1 year ago

@dc185334 this appears to be an issue with the token roles. Please make sure the token has these code references roles https://docs.launchdarkly.com/home/members/role-actions/?q=using+act#code-reference-actions