From d6fea4f72c74b5dccc5d2fe94a8928a838cda7e1 Mon Sep 17 00:00:00 2001 From: Victor Fernandes Date: Thu, 16 Nov 2023 18:25:43 +0100 Subject: [PATCH] docs: updating docs to add new private repo feature --- Readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Readme.md b/Readme.md index f135f59..610ec5c 100644 --- a/Readme.md +++ b/Readme.md @@ -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