Prerequisites
- Your admin must install and configure the GitHub connector, add the GitHub actions pack under Admin > Actions, and enable this action.
- A GitHub app must be installed on the relevant organization(s) and linked to the correct GitHub datasource in the Glean admin console.
- The GitHub app must have the necessary permissions to star repositories on behalf of users.
Supported parameters
| Parameter | Type | Description |
|---|---|---|
| Owner | String | The owner of the target GitHub repository (user or organization). |
| Repository | String | The name of the target GitHub repository to star. |
Usage examples
- “Star the ‘react’ repository from ‘facebook’ on GitHub so I can keep track of it for my frontend project.”
- “Add a star to the ‘tensorflow/tensorflow’ repository.”
- “Star the ‘microsoft/vscode’ repository for later reference.”
Troubleshooting
Authentication or authorization failure
Authentication or authorization failure
Repository not found or 404 error
Repository not found or 404 error
- Possible cause: The owner or repository name is incorrect, the repository does not exist, or the authenticated user does not have access to it.
- Fix: Verify that the repository exists at https://github.com/owner/repo and that the authenticated user has at least read access to it. Check for typos in the owner or repository name.
Action succeeds but star does not appear
Action succeeds but star does not appear
- Possible cause: There may be a delay in GitHub updating the star count, or the star was applied but not immediately visible due to caching.
- Fix: Wait a few moments and refresh the repository page or check your starred repositories list at https://github.com/stars to confirm the star was applied.
403 response with OAuth App access restrictions message
403 response with OAuth App access restrictions message
- Possible cause: The GitHub organization has restricted third-party OAuth apps, so the app used by this action is not allowed to star repositories even if credentials appear to be correct.
- Fix: Ask your GitHub organization admin to enable the app or adjust OAuth App access restrictions for the relevant repositories.
FAQs
Can I star private repositories?
Can I star private repositories?
Yes, you can star private repositories as long as the authenticated user has access to them. The repository will appear in your starred list, but it will only be visible to you and others who have access to the private repository.
Is there a limit to how many repositories I can star?
Is there a limit to how many repositories I can star?
GitHub does not impose a hard limit on the number of repositories you can star, but you should be mindful of rate limiting if you are starring many repositories in quick succession. The GitHub API has rate limits that may affect bulk operations.
Can I unstar a repository using this action?
Can I unstar a repository using this action?
No. This action only stars repositories. To unstar a repository, you would need a separate action or do it manually through the GitHub interface.
Does this action work with GitHub Enterprise?
Does this action work with GitHub Enterprise?
This action is designed for GitHub.com and GitHub Enterprise Cloud. Support for GitHub Enterprise Server depends on your GitHub connector configuration. Confirm with your admin if you are using GitHub Enterprise Server.