Star Repository on GitHub
Connect a GitHub account to ByteChef with an OAuth app and run a workflow that stars a repository.
This guide connects a GitHub account to ByteChef and builds a workflow that stars a repository. You create a project, add a workflow, configure the GitHub Star Repository action with an OAuth 2.0 connection, and test it.
Step 3 asks for the Client ID and Client Secret of a GitHub OAuth app. If you do not have them yet, create the app first. See Connect your GitHub account at the end of this guide.
Create a project
A project is the container that holds your workflows.
Open the Projects page and click New Project (or Create Project when the list is empty).
Enter a project name. Optionally add a description, choose a category, and add tags. Then click Save.

Create a workflow
Your new project's row opens with an empty Workflows tab. Click Create Workflow. Once a project has workflows, the same button reads New Workflow.
The chevron next to the button opens more options: From Template, Import Workflow, and Import n8n Workflow.
Enter a label for the workflow and an optional description, then click Save. ByteChef opens the new workflow in the editor.

Add the GitHub component
In the workflow editor, click the + button to add a component.

Search for and select the GitHub component, then choose the Star Repository action.

With GitHub selected, its actions are listed on the right.

Open the Connection tab and click Create Connection.
Enter a connection name, paste the Client ID and Client Secret of your GitHub OAuth app into Client id and Client secret, and click Next. Then click Connect and authorize ByteChef in the GitHub window that opens.

Back on the Connection tab, make sure the new connection is selected. If it is not, select it in the connection list.

Switch to the Properties tab and fill in the repository you want to star:
- User/Organization - the account that owns the repository, for example
bytechefhq - Repository - the repository name, for example
bytechef

Test the workflow
Click Test to run the workflow. ByteChef executes the Star Repository action against the repository you configured.

The Output tab reads No output data. This is expected: GitHub's star endpoint returns an empty
204 No Content response. The green DONE badge and the task's green check show that the call succeeded.
Open the Stars tab on your GitHub profile. The repository you configured appears there.
Connect your GitHub account
The GitHub connection in step 3 authenticates through an OAuth app that you own. Create one as follows.
Sign in to GitHub, click your profile icon in the top-right corner, and select Settings.
In the left sidebar, click Developer settings, then OAuth Apps, then New OAuth App.
Fill in the application details:
| Field | Value |
|---|---|
| Application name | A name for your app, for example Test App |
| Homepage URL | Your application's homepage, for example https://www.bytechef.io/ |
| Authorization callback URL | <public URL of your ByteChef instance>/callback, for example https://app.bytechef.io/callback, or http://localhost:8080/callback for a local instance |
Then click Register application.
Click Generate a new client secret, then copy the Client ID and the Client Secret. You paste them into ByteChef in step 3.
GitHub shows the client secret only once. Copy it before leaving the page.
How is this guide?
Last updated on