xebia-fabkit
fabkit is a CI/CD command for Microsoft Fabric, built on Microsoft's fabric-cicd. It adds checks that catch configuration mistakes fabric-cicd lets through, and fails deploys that fabric-cicd reports as successful while leaving items broken.
Recommended setup
Each team keeps its own repository and pins a fabkit version. In every repository, pull requests run fabkit validate, and a merge deploys with fabkit deploy: dev to DEV, preprod to PREPROD, main to PROD. The deployment settings stay in fabric-cicd's own config.yml and parameter.yml. fabkit has no config file of its own.
GitHub is the only supported platform. Private-link workspaces are not supported.
Getting started
Start a new repository from the template. It has the config.yml, the workflows, the pre-commit hooks and a Makefile.
In an existing repository with a fabric-cicd config.yml:
uvx --from xebia-fabkit==0.9.0 fabkit validate
Commands
| Command | What it does |
|---|---|
fabkit validate |
Checks the repository for every environment, without logging in. The pull request check. |
fabkit deploy --environment PROD |
Runs the same checks for one environment, checks the connections, deploys with fabric-cicd, then runs the uploads. |
fabkit upload --environment PROD --lakehouse lh_landing --source dbt/ --target Files/dbt |
Replaces a lakehouse folder with a local folder, without a Fabric deploy. For example a dbt project. |
Run fabkit from the repository root. fabkit <command> --help lists the flags.
What fabkit adds
| Problem | fabric-cicd | fabkit |
|---|---|---|
Environment key missing or miscased in parameter.yml |
Skips the replacement | validate fails |
Placeholder (TODO, <...>) left in a value |
Deploys it | validate fails |
Value shaped unlike its find_value, e.g. a GUID with a character missing |
Deploys it | validate fails |
| Same value in every environment | Deploys it | validate fails; use _ALL_ if intended |
find_value that matches no file its filters select |
Replaces nothing | validate fails |
Per-environment setting in config.yml that leaves out an environment |
Ignores the setting there, e.g. deploys every item type | validate fails |
parameter.yml that config.yml does not reference |
Ignores the file | validate fails |
No items in scope while unpublish.skip is false |
Removes every item in scope from the workspace | validate fails |
Two items with the same logicalId, or the same type and name |
Fails after login, or deploys only one | validate fails |
VariableLibrary override with keys other than name and value |
Fabric rejects the library | validate fails |
| VariableLibrary without a value set for an environment | Activates the default value set | validate fails |
semantic_model_binding to a model that is not in the repository |
Skips the binding | validate fails |
| Connection ID the service principal cannot see | Publishes the item unbound and reports success | deploy stops before publishing |
| Binding, value-set or unpublish warning during the deploy | Reports success | deploy fails |
| Semantic model owned by someone else | Binding fails: only the owner can bind | deploy --take-over-semantic-models makes the deploy identity owner first |
The checks also cover the templates under extend in parameter.yml.
fabkit also requires unpublish.skip to be set explicitly, and every environment to map to a workspace in core.workspace or core.workspace_id. The GitHub Environments use the same names.
Good to know
- Values that don't exist yet: write
PLACEHOLDER, e.g. for the GUID of a production lakehouse that is not created.validatewarns;deployfails only when the value would reach the environment being deployed. $ENV:values need their variable only in the deploy of their own environment. Aconnection_idis the exception: fabric-cicd checks every environment's GUID, so put one variable under_ALL_.- Connections in variable libraries are checked when the variable name matches
--connection-variables(defaultConnectionID$). - Uploads replace the whole target folder. fabkit refuses a folder with files it did not upload, unless
--replace-existing(--upload-replace-existingondeploy) is passed. dbt'starget,logsandprofiles.ymlare left out. - Semantic model takeover needs Member or Admin on the workspace, and the tenant setting that lets service principals use Power BI APIs.
- Debug logging: set
RUNNER_DEBUG=1. GitHub sets it on a debug re-run.
Setup in Azure and GitHub
- Create an Entra app registration for deploys.
- Add one federated credential per GitHub Environment. Take the subject from the
azure/loginerror of a first, failing run; newer repositories use a subject format that is hard to predict. - Create the GitHub Environments, named like the
config.ymlkeys, with the secretsAZURE_CLIENT_IDandAZURE_TENANT_ID. Add protection rules on production. - Give the service principal Contributor or higher on each workspace.
- Share every connection the deploy binds with the service principal.
Versioning
Versions below 1.0 may change flags between minor releases. Pin an exact version, in the workflows and the pre-commit rev, and update it by hand.
License
MIT
Metadata
Release files for xebia-fabkit 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xebia_fabkit-0.9.0.tar.gz | 22.3 kB | With provenance | Details for xebia_fabkit-0.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xebia_fabkit-0.9.0-py3-none-any.whl | Python 3 | none | any | Details for xebia_fabkit-0.9.0-py3-none-any.whl |
Total release size: 50.1 kB
Release files / xebia_fabkit-0.9.0.tar.gz
| Download URL | xebia_fabkit-0.9.0.tar.gz |
|---|---|
| Size | 22.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a7b204e70213ef86732112e72598a4fd8f644c69e859ec9e8462d9a72e0962ab
|
|
BLAKE2b-256 checksum How to use checksums |
6cdccc13235da8071cdc7ec00283eaeefd0cb6403d00000c1f359c9536e6bbe3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logRelease files / xebia_fabkit-0.9.0-py3-none-any.whl
| Download URL | xebia_fabkit-0.9.0-py3-none-any.whl |
|---|---|
| Size | 27.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6db852e99773716641564483765c9421518b88430d8f8a38972d68cabfaf58a6
|
|
BLAKE2b-256 checksum How to use checksums |
530b40ecaed61f079a80ec389252c1eaca1727517e423e8a762e02e7f64841ec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logSecurity for xebia-fabkit 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for xebia_fabkit-0.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.