action-github-app-token icon indicating copy to clipboard operation
action-github-app-token copied to clipboard

`Cannot read properties of undefined (reading 'id')` when the app is not installed

Open ari-becker opened this issue 2 years ago • 0 comments

Environment

N/A

Steps to Reproduce

  1. Create an app, produce a private key
  2. Forget to install it
  3. Run a workflow that uses this step

Expected Result

An error message stating that no installations were found.

Actual Result

image

The error occurs because https://github.com/getsentry/action-github-app-token/blob/86b993806f8cc455ab145d189f0523917d2fe095/src/main.ts#L25 presumes that there is at least one installation in the returned array.

ari-becker avatar Nov 15 '23 14:11 ari-becker