action-github-app-token
action-github-app-token copied to clipboard
`Cannot read properties of undefined (reading 'id')` when the app is not installed
Environment
N/A
Steps to Reproduce
- Create an app, produce a private key
- Forget to install it
- Run a workflow that uses this step
Expected Result
An error message stating that no installations were found.
Actual Result
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.