expo / expo-github-action

Expo GitHub Action makes it easy to automate EAS builds or updates
MIT License
771 stars 75 forks source link

You don't have the required permissions to perform this operation. #228

Closed linonetwo closed 1 year ago

linonetwo commented 1 year ago

Description of the bug

I already have repository secret

截屏2023-09-06 14 37 33 截屏2023-09-06 14 37 55

The run https://github.com/tiddly-gittly/TidGi-Mobile/actions/runs/6093556409/job/16533421643

To Reproduce

What steps did you perform which led to this issue?

  1. Create a repo in an Github Organization
  2. Init with expo project
  3. Setup repository secret and try run the workflow

Expected behavior

Run as local eas build --platform android --non-interactive does (logined)

Actual behavior

Error about "You don't have the required permissions to perform this operation."

Additional context

Trying to use github actions to release an apk for a free opensource project in an organization. And I want to upload artifact to Github Release https://github.com/expo/expo-github-action/issues/182 so I don't need to pay for Google/Apple to upload to store, because it is a free opensourced project.

linonetwo commented 1 year ago

Fixed by:

  1. create an organization on eas (previously it was on my personal eas account), now both eas and github use organization account,
  2. connect github repo to the eas organization, then it works.
Reinhartsamuel commented 9 months ago

I encountered this problem when I cloned my repo to another Expo Project, with another Expo account of mine.

To reproduce this, simply:

  1. eas whoami --> make sure you already connected with the correct expo account on your repo before building.
  2. If the account is not the same, eas logout and then eas login with the correct email and password
  3. Last, connect the project id you get from expo dashboard by eas init --id your-project-id-here
Ritheshnv commented 6 months ago

I encountered this problem when I cloned my repo to another Expo Project, with another Expo account of mine.

To reproduce this, simply:

  1. eas whoami --> make sure you already connected with the correct expo account on your repo before building.
  2. If the account is not the same, eas logout and then eas login with the correct email and password
  3. Last, connect the project id you get from expo dashboard by eas init --id your-project-id-here

Thank you so much....eas init --id accept overiding project it, should work now

MohammedAlez commented 3 months ago

Try to delete the projectId in your app.json because it's related to another account

Ritheshnv commented 3 months ago

Yes, thanks it worked

On Wed, Jun 5, 2024 at 11:46 PM MohammedAlez @.***> wrote:

Try to delete the projectId in your app.json because it's related to another account

— Reply to this email directly, view it on GitHub https://github.com/expo/expo-github-action/issues/228#issuecomment-2150673400, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEBWJF775A3UDLGIL5I7GSLZF5IWJAVCNFSM6AAAAAA4M2GVSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJQGY3TGNBQGA . You are receiving this because you commented.Message ID: @.***>