GitHub Actions
Integrate Harness AIDI with GitHub Actions.
GitHub Actions is a GitHub feature that enables you to automate various event-driven activities in GitHub, such as cloning a repository, generating Docker images, and testing scripts.
Over 10,000 GitHub Actions are available on the GitHub Marketplace, and optionally, you can create your own Actions.
You can use the GitHub Action integration to integrate GitHub Actions with Harness SEI.
Requirements
You can either configure the integration using Github OAuth or use a Github Personal Access Token (PAT). If you can't use OAuth, you must create a GitHub personal access token to configure the SEI GitHub Actions integration.
Log in to your GitHub account and create a personal access token. For instructions on managing your personal access tokens, see the official GitHub documentation.
Select the following permissions for your personal access token:
All repo scopes, including the parent repo scope. The top-level repo scope is required for Harness SEI to have the required visibility into your repos (repoadmin:org -> read:org permission).
If your GitHub organization uses SAML SSO, enable SSO for your personal access token. For instructions on authorizing a personal access token for use with SAML SSO, see the official GitHub documentation.
Connect with GitHub Actions (Cloud)
Select Integrations under Data Settings.
Select Available Integrations, locate the GitHub Actions integration.
Select Install.
Select the type of the GitHub Actions instance as Cloud.
Select an authentication method as Using OAuth.
Follow the prompts to grant access to GitHub.
In Integration Name, enter a name for the integration.
Select repositories to associate with the integration or select Ingest All Repos to associate all current and future repos in your GitHub organization.
Click on Validate Connection to run the pre-flight checks and validate the connection. Once successful, you'll have the integration set up under the Your Integrations tab.
This authentication method is simple to set up and is suitable for various API interactions. Note that the access token needs periodic renewal based on the timeline of the generated token.
In Integration Name, enter a Name for the integration.
Add a Description for the integration. (Optional)
Enter the Personal Access Token that you generated earlier.
Click Validate Connection to run pre-flight checks and confirm the connection. Once validated, your Github Actions integration will appear under Your Integrations.
Connect with GitHub Actions (On-Prem)
To connect Harness SEI with an on-prem instance of GitHub Actions, you'll need to use the Ingestion Satellite.
The steps for configuring the integration using the Ingestion Satellite is similar to configuring the integration on Cloud, with the exception of using satellite to communicate with the GitHub server.
In Integration Name, enter a Name for the integration.
Add a Description for the integration. (Optional)
Enter the Personal Access Token that you generated earlier.
In the GitHub Actions URL field, add the URL where your GitHub Actions instance is hosted.
Click on the Download YAML File button and save the
satellite.ymlfile. Update it following the instructions here.
If you experience any issues while configuring the integration using the Ingestion Satellite, refer to the Ingestion Satellite Troubleshooting and FAQs.
Here’s a sample satellite.yml file:
Re-authenticate the GitHub Actions integration
The re-authentication steps depend on how your GitHub Actions integration is configured.
OAuth (GitHub Cloud)
If you're using OAuth, re-authenticating as an SEI Admin refreshes the access token.
In GitHub, go to Settings → Applications → Authorized OAuth Apps.
Locate the SEI app.
Revoke access.
Return to Harness SEI.
Select your GitHub Actions integration.
Click Re-Authenticate and complete the OAuth flow.
Personal Access Token (PAT)
If you're using a PAT:
Generate a new PAT with the required scopes.
In Harness SEI, go to Integrations.
Select your GitHub Actions integration.
Click Re-Authenticate.
Enter the new token and validate the connection.
On-Prem (Satellite)
If your GitHub Actions data is ingested via Satellite:
Generate a new PAT from your GitHub instance.
Ensure the token includes required permissions.
Update the credentials in your Satellite configuration if applicable.
In Harness SEI, go to Integrations.
Select your GitHub Actions integration.
Click Re-Authenticate.
Re-authenticate the integration using the updated token.
Re-authentication ensures continued access and resolves issues caused by expired credentials or permission changes.
Last updated
Was this helpful?