Skip to content

Commit

Permalink
fix: semantic-release issues write perms
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Dec 16, 2024
1 parent 4d7bedb commit 844fc12
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,35 @@ yarn start
- Note the App ID
- Add these to your environment configuration

## Troubleshooting

### Permission Errors

If you encounter the error "The permissions requested are not granted to this installation", follow these steps:

1. **Update GitHub App Permissions**:
- Go to your GitHub App settings
- Under "Permissions & events", ensure all required permissions are configured:
- Repository Contents: Read & write
- Metadata: Read-only
- Issues: Read & write
- Pull requests: Read & write
- Click "Save changes"

2. **Update Existing Installations**:
- After updating permissions, GitHub will prompt all existing installations to review and accept the new permissions
- Go to your GitHub App's "Install App" tab
- For each organization/account where the app is installed:
- Click "Configure"
- You should see a banner asking to review and accept the new permissions
- Review and accept the new permissions
- Alternatively, you can uninstall and reinstall the app to immediately get the new permissions

3. **Verify Permissions**:
- After accepting new permissions, it may take a few minutes for changes to propagate
- You can verify the permissions are active by checking the installation settings
- If issues persist, try uninstalling and reinstalling the app

## Security Features

- OIDC token verification using GitHub's JWKS endpoint
Expand Down
2 changes: 1 addition & 1 deletion packages/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function generateToken(owner, repository) {
permissions: {
contents: "write",
metadata: "read",
issues: "write" // Added issues permission
// issues: "write" // Added issues permission
}
});

Expand Down

0 comments on commit 844fc12

Please sign in to comment.