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

Better error message when the app isn't installed to the repo

Open CatChen opened this issue 2 years ago • 1 comments

The error message Error: Cannot read properties of undefined (reading 'id') isn't very descriptive. I looked into this action's source code and realized that the app wasn't properly installed to the repo so this line throws:

https://github.com/getsentry/action-github-app-token/blob/86b993806f8cc455ab145d189f0523917d2fe095/src/main.ts#L25

CatChen avatar Jun 01 '23 19:06 CatChen

I think I have this issue currently. Do you know how to fix it? I had it working on an older repo, but I get this error on a new repo after copy-pasting the workflow. EDIT: Fixed it. Thanks for pointing me to the right direction.

ChrisAcrobat avatar Aug 02 '23 07:08 ChrisAcrobat