Skip to main content

Auto Discovery

Actions auto discovery automates the process of discovering and syncing GitHub workflow actions with Port.

You can run the tool and it will automatically import your GitHub action workflows to Port and add them as self-service actions in a specified blueprint.

For more detailed information about the auto discovery tool, please refer to the README file in the project's repository.

Usage example

#!/bin/bash
export PORT_CLIENT_ID="PORT_CLIENT_ID"
export PORT_CLIENT_SECRET="PORT_CLIENT_SECRET"
export GITHUB_TOKEN="GITHUB_TOKEN"
export GITHUB_ORG_NAME="GITHUB_ORG_NAME"
export BLUEPRINT_IDENTIFIER="BLUEPRINT_IDENTIFIER"
export ACTION_TRIGGER="TRIGGER" # optional, defaults to CREATE
export REPO_LIST="repo1,repo2,repo3" # optional, defaults to all repositories in the organization(*), comma separated list of repositories repo1,repo2,repo3

curl -s https://raw.githubusercontent.com/port-labs/actions-auto-discovery/main/github-actions/sync.sh | bash