-
Notifications
You must be signed in to change notification settings - Fork 1
GitHub
Christos Galanopoulos edited this page Apr 26, 2025
·
8 revisions
This guide explains how to use GitHub features with sKaleQL, including setting up authentication, running workflows, and accessing query results through GitHub Actions.
- Using This Template
- Setting Secret Values
- Executing KQL Queries
- Viewing Query Results
- Downloading Artifacts
To create a new repository using this template:
- Navigate to the kql-template-repo repository.
- Click Use this template.
- Select Create a new repository.
To configure the necessary secrets for the repository, set the following values:
- AZURE_CLIENT_ID: Client ID of the Service Principal.
- AZURE_SUBSCRIPTION_ID: Subscription ID containing the Log Analytics Workspace.
- AZURE_TENANT_ID: Tenant ID of the Service Principal.
- WORKSPACE_ID: ID of the Log Analytics Workspace.
- Navigate to Settings > Secrets and variables > Actions.
- Click New repository secret.
- Enter the name and value of the secret.
- Click Add secret.
- Go to the Actions tab and select the execute-queries workflow.
- Click Run workflow.
- Enter the folder containing the KQL queries relative to
library
(e.g.,device
). - Click Run workflow.
- Click on the workflow run to view the details.
- Click on the Execute queries in job.
- Click on the Execute queries step.
- Go to the workflow run.
- Under Artifacts, click on Query-Results.
With your GitHub setup complete, you can now familiarize yourself with the configuration options.