docs: updating docs to add new private repo feature

This commit is contained in:
Victor Fernandes 2023-11-16 18:25:43 +01:00
parent fcfe30804a
commit d6fea4f72c
No known key found for this signature in database
GPG key ID: ACDB2332EA5A89A6

View file

@ -290,6 +290,13 @@ kubeconform -kubernetes-version 3.8.0 -schema-location 'https://raw.githubuserc
Summary: 1 resource found in 1 file - Valid: 1, Invalid: 0, Errors: 0 Skipped: 0
```
### Schemas behind private GitHub repos
By setting the environment variable `GITHUB_TOKEN=x` you can use schemas that are behind a private repository.
See [getting a token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) for info on how to get one command line token.
> Tip: if using GitHub CLI, `gh auth token` will give a valid token.
## Integrating Kubeconform in the CI
`Kubeconform` publishes Docker Images to Github's new Container Registry (ghcr.io). These images