CIPP icon

CIPP

Interact with CIPP API

Actions129

Overview

This node executes GitHub Actions via POST requests within the 'Tool' resource context. It allows users to interact with GitHub repositories by specifying repository details such as branch, full repository name, and file or directory path. Users can select from predefined GitHub actions like getting branches, file trees, file contents, organizations, creating repositories, or searching. This node is useful for automating GitHub workflows, managing repository contents, or integrating GitHub data into other automation processes.

Use Case Examples

  1. Trigger a GitHub Action to retrieve all branches of a specific repository branch.
  2. Execute a GitHub Action to fetch the file tree of a repository path for analysis or processing.
  3. Create a new repository by executing the corresponding GitHub Action with the required parameters.

Properties

Name Meaning
Branch The branch of the repository to target for the GitHub Action.
Full Name The full repository name in the format 'owner/repo' to specify the target repository.
Path The file or directory path within the repository relevant to the GitHub Action.
GitHub Action The specific GitHub Action to execute, such as getting branches, file tree, file contents, organizations, creating a repo, or searching.
Request Options Additional request settings such as batching, SSL certificate validation, proxy configuration, and timeout settings to control the HTTP request behavior.

Output

JSON

  • data - The JSON response data returned from executing the GitHub Action, containing results such as branch lists, file trees, file contents, organization info, repository creation status, or search results.

Dependencies

  • Requires an API key credential for authentication to access GitHub or related API endpoints.

Troubleshooting

  • Ensure the 'Full Name' property is correctly formatted as 'owner/repo' to avoid repository not found errors.
  • Verify that the branch name exists in the repository to prevent branch-related errors.
  • Check network connectivity and proxy settings if requests time out or fail to connect.
  • If SSL certificate validation fails, consider enabling 'Ignore SSL Issues' option cautiously.
  • Ensure the API key credential has sufficient permissions to perform the selected GitHub Action.

Discussion