Extract APIs from github hosted source code using our Github Action
Last updated
Last updated
You can extract APIs from your github code repositories using our Github action.
Prepare the following variables:
AKTO_API_KEY
- Go to My accounts > Settings > Integrations > Akto API > Generate token. Copy the token generated.
AKTO_DASHBOARD_URL
- URL of your Akto dashboard. Please ensure the github action runner can access the Akto dashboard,
API_COLLECTION_NAME
- The API collection name into which you want to import the extracted APIs. Ensure that this collection exists.
Add a step in your github action workflow based on the following example:
A summary of all the extracted APIs should be avaialbe in the Github workflow run summary. The summary includes a list of the new APIs that were added in the present commit.
The API collection as specified by the API_COLLECTION_NAME
variable can be viewed in the Akto dashboard to review the APIs extracted from source code.