GITHUB_INTEGRATION

name: "input_GitHub"
inputs:
 github_field:
   type: GITHUB_INTEGRATION
   name: "GitHub Integration"
   default: "github_integration_hash"
execute_commands:
 - gh auth status
docker_image_name: "buddy/github-cli"
docker_image_tag: "latest"

The GITHUB_INTEGRATION parameter adds an input that lets you select the GitHub integration and use it in the action. The action also generates $GITHUB_TOKEN that can be used in the pipeline.

This action uses a Docker image with the GitHub CLI installed. The executed command retrieves the primary contact information of the account associated with the selected GitHub integration:

Custom action with GITHUB inputCustom action with GITHUB input Custom action logsCustom action logs

Tip
Adding default with the integration hash will automatically set the integration in the input.
Last update:
Aug 6, 2024