GitHub App icon

GitHub App

Consume GitHub API using GitHub App authentication

Repository → Get License

AI-generated

Overview

This node operation fetches the license information of a specified GitHub repository. It is useful for users who want to programmatically retrieve the license file content of a repository to understand the licensing terms under which the repository's code is distributed. For example, it can be used in automation workflows to audit repository licenses or to display license information in dashboards.

Use Case Examples

  1. Retrieve the license of the 'n8n-io/n8n' repository to verify its open-source license.
  2. Automatically fetch license details of multiple repositories owned by a user or organization for compliance checks.

Properties

Name Meaning
Repository Owner The owner of the GitHub repository, which can be specified by selecting from a list, providing a URL, or entering the owner name directly.
Repository Name The name of the GitHub repository, which can be specified by selecting from a list, providing a URL, or entering the repository name directly.

Output

JSON

  • license - The license information object of the repository, including license type, key, name, and other metadata.

Dependencies

  • Requires GitHub App API credentials for authentication.

Troubleshooting

  • Ensure the 'Repository Owner' and 'Repository Name' inputs are valid and correctly formatted URLs or names to avoid validation errors.
  • If the license file is not detected in the repository, the API may return an error or empty response; verify the repository actually contains a license file.
  • Authentication errors may occur if the GitHub App credentials are invalid or lack necessary permissions; verify the credentials and permissions.

Links

Discussion