diff --git a/ingestion/src/metadata/readers/github.py b/ingestion/src/metadata/readers/github.py index 0e58cd4fa7a..d26b5bbd2fe 100644 --- a/ingestion/src/metadata/readers/github.py +++ b/ingestion/src/metadata/readers/github.py @@ -53,7 +53,9 @@ class GitHubReader(Reader): to the API """ if self._auth_headers is None: - self._auth_headers = {"Authentication": f"token {self.credentials.token}"} + self._auth_headers = { + "Authorization": f"Bearer {self.credentials.token.get_secret_value()}" + } return self._auth_headers diff --git a/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/airflow.md b/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/airflow.md index ee9c1e604f7..80a53fd96aa 100644 --- a/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/airflow.md +++ b/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/airflow.md @@ -103,6 +103,11 @@ properties we need to add in this case: - **repositoryName**: The name of a GitHub repository. For example, in https://github.com/open-metadata/OpenMetadata, the name is `OpenMetadata`. - **token**: Token to use the API. This is required for private repositories and to ensure we don't hit API limits. +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`. + + {% /codeInfo %} #### Source Configuration - Source Config diff --git a/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/cli.md b/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/cli.md index c0ec279f6a8..a7fcf8538a0 100644 --- a/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/cli.md +++ b/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/cli.md @@ -103,6 +103,11 @@ properties we need to add in this case: - **repositoryName**: The name of a GitHub repository. For example, in https://github.com/open-metadata/OpenMetadata, the name is `OpenMetadata`. - **token**: Token to use the API. This is required for private repositories and to ensure we don't hit API limits. +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`. + + {% /codeInfo %} #### Source Configuration - Source Config diff --git a/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/index.md b/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/index.md index 84a117f1db8..3acbea3c930 100644 --- a/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/index.md +++ b/openmetadata-docs/content/v1.0.0/connectors/dashboard/looker/index.md @@ -194,6 +194,11 @@ Then, if we choose to inform the GitHub credentials to ingest LookML Views: - **Repository Name**: The name of a GitHub repository. For example, in https://github.com/open-metadata/OpenMetadata, the name is `OpenMetadata`. - **API Token**: Token to use the API. This is required for private repositories and to ensure we don't hit API limits. +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`. + + {% /extraContent %} {% step srNumber=6 %} diff --git a/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/airflow.md b/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/airflow.md index ee9c1e604f7..80a53fd96aa 100644 --- a/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/airflow.md +++ b/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/airflow.md @@ -103,6 +103,11 @@ properties we need to add in this case: - **repositoryName**: The name of a GitHub repository. For example, in https://github.com/open-metadata/OpenMetadata, the name is `OpenMetadata`. - **token**: Token to use the API. This is required for private repositories and to ensure we don't hit API limits. +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`. + + {% /codeInfo %} #### Source Configuration - Source Config diff --git a/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/cli.md b/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/cli.md index c0ec279f6a8..a7fcf8538a0 100644 --- a/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/cli.md +++ b/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/cli.md @@ -103,6 +103,11 @@ properties we need to add in this case: - **repositoryName**: The name of a GitHub repository. For example, in https://github.com/open-metadata/OpenMetadata, the name is `OpenMetadata`. - **token**: Token to use the API. This is required for private repositories and to ensure we don't hit API limits. +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`. + + {% /codeInfo %} #### Source Configuration - Source Config diff --git a/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/index.md b/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/index.md index 84a117f1db8..3acbea3c930 100644 --- a/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/index.md +++ b/openmetadata-docs/content/v1.1.0-snapshot/connectors/dashboard/looker/index.md @@ -194,6 +194,11 @@ Then, if we choose to inform the GitHub credentials to ingest LookML Views: - **Repository Name**: The name of a GitHub repository. For example, in https://github.com/open-metadata/OpenMetadata, the name is `OpenMetadata`. - **API Token**: Token to use the API. This is required for private repositories and to ensure we don't hit API limits. +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`. + + {% /extraContent %} {% step srNumber=6 %} diff --git a/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Dashboard/Looker.md b/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Dashboard/Looker.md index 5f7c2211f36..26fa3c6b939 100644 --- a/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Dashboard/Looker.md +++ b/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Dashboard/Looker.md @@ -58,3 +58,7 @@ The name of a GitHub repository. For example, in https://github.com/open-metadat #### API Token $(id="token") Token to use the API. This is required for private repositories and to ensure we don't hit API limits. + +Follow these [steps](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token#creating-a-fine-grained-personal-access-token) in order to create a fine-grained personal access token. + +When configuring, give repository access to `Only select repositories` and choose the one containing your LookML files. Then, we only need `Repository Permissions` as `Read-only` for `Contents`.