README
This is a framework to integrate ServiceNow data into a CI/CD pipeline.
with Context("/table/mytable", validator=Record) as ctx:
# if needed, filter records, grouping, further validation... can be done
update_yaml("test.yaml", ctx.data)
We assume that the workflow is standard:
- Get one resource from ServiceNow (e.g. "/table/incident")
- Validate the data received
- Store the data
- Commit and push all changes
Nb: if needed, this library provide lower level utilities.
How it works
- Every variables are taken from environment variables. (see below)
- This will create a
timestamp.txtfile with the last run. This file must be cached for the next run - This will automaticly clone the target repository
- The data is retrieved and validated against a validator. We recommend to use pydantic library for the validation
ctx.datawill contain a list a dict containing at leastsys_identry that is unique
Environment variables
Here is the list of the possible environment variables
client.Client
- SNOW_INSTANCE: ServiceNow instance (e.g. "myinstance" in
https://myinstance.servicenow.com) - SNOW_USER: The ServiceNow user to use
- SNOW_PASSWORD: The password of the ServiceNow user Additional:
- SNOW_CLIENT_ID: Used for OAuth2.0 protocol
- SNOW_CLIENT_SECRET: Used for OAuth2.0 protocol
git.Git
- GIT_URL: git URL for http connection (it can contain the credentials, making GIT_USER/GIT_PASSWORD useless) E.g. "https://{login}:{password}@gitlab.com/owner/project.git" Additional:
- GIT_USER: git user for http connection (injected into the provided url)
- GIT_PASSWORD: git password for http connection (injected into the provided url). For Gitlab, this can be the token
- GIT_AUTHOR_NAME: author of the commit
- GIT_AUTHOR_EMAIL: email of the commit author
- GIT_BRANCH: The branch to edit (create it if it doesn't exist). Default to the default branch
- GIT_SRC_BRANCH: The source branch from which to create the working branch
Metadata
Release files for snowd 0.1.3
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 |
|---|---|---|---|---|
| snowd-0.1.3.tar.gz | 8.5 kB | Without provenance | Details for snowd-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| snowd-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for snowd-0.1.3-py3-none-any.whl |
Total release size: 18.0 kB
Release files / snowd-0.1.3.tar.gz
| Download URL | snowd-0.1.3.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac717ba1748b79b1ffb32d919ebe08aa3c175f48383e6e062331a81a0888da4e
|
|
BLAKE2b-256 checksum How to use checksums |
1dce3e5dc27cc7b7cf39b27561e81321d45dfa79ea81b2869ed942270d7561bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / snowd-0.1.3-py3-none-any.whl
| Download URL | snowd-0.1.3-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e2e9316863620fb63e240d84090bf518bb33898fd81dd39e2f1c364e92198d8
|
|
BLAKE2b-256 checksum How to use checksums |
912b50dc8f25c816752ec99b3f23f46876dc15f2d2efd7169c7d90ea552071fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Security for snowd 0.1.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.