
Git PushDashboards
CertifiedPush dashboards to Git
Git PushDashboards
Push dashboards to Git
Commits saved dashboards to Git under gitDirectory (default _dashboards), filtered by glob patterns. Creates the branch if missing; supports dry-run diff generation.
type: io.kestra.plugin.git.PushDashboardsExamples
Manually push a single dashboard to Git if the input push is set to true.
id: push_dashboards
namespace: prod
inputs:
- id: push
type: BOOL
defaults: false
tasks:
- id: if
type: io.kestra.plugin.core.flow.If
condition: "{{ inputs.push == true}}"
then:
- id: commit_and_push
type: io.kestra.plugin.git.PushDashboards
dashboards: mydashboard # if you prefer templating, you can use "{{ flow.id }}"
url: https://github.com/kestra-io/scripts
username: git_username
password: "{{ secret('GITHUB_ACCESS_TOKEN') }}"
branch: main
commitMessage: "add mydashboard from {{ flow.namespace ~ '.' ~ flow.id }}"
Properties
branch string
mainBranch to push dashboards
Defaults to main; created if it does not exist.
cloneSubmodules booleanstring
Clone submodules
Default false; enable to fetch and initialize nested submodules.
commitMessage string
Add dashboards from flow: {{ flow.id }}Git commit message
connectTimeout integerstring
10000HTTP connect timeout (ms)
Default 10000 ms.
dashboards stringarray
**Dashboards to include
Glob pattern(s) matching dashboard IDs; defaults to all (**).
delete booleanstring
trueDelete removed resources
If true (default), removes Git files that no longer exist in Kestra.
dryRun booleanstring
falseDry run only
When true, writes a diff file without pushing. Default false pushes immediately.
gitConfig object
Git configuration overrides
Map of git config keys and values applied after clone, e.g.:
- core.fileMode: false (ignore permission flips)
- core.autocrlf: false (preserve line endings)
gitDirectory string
_dashboardsDashboard destination directory
Relative path inside the repository; defaults to _dashboards.
noProxy booleanstring
Disable proxy for HTTP
When true, forces direct connections instead of using the JVM proxy settings.
passphrase string
Passphrase for privateKey
password string
Password or personal access token
Supplies HTTP credentials. When a PAT is used, pushes are recorded under that PAT’s user without needing authorName and authorEmail.
**GitHub PAT permissions required: **
- Fine-grained PAT:
Contents: Read(clone/fetch) orContents: Read and Write(push), plusMetadata: Read(mandatory base permission). AddWorkflows: Read and Writewhen pushing.github/workflows/files. - Classic PAT:
reposcope covers all read/write operations; addworkflowwhen pushing workflow files.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
privateKey string
PEM private key
PEM-formatted private key matching a public key registered on the Git server. Generate with ssh-keygen -t ecdsa -b 256 -m PEM.
readTimeout integerstring
60000HTTP read timeout (ms)
Default 60000 ms.
trustedCaPemPath string
Extra trusted CA PEM path
Optional PEM-encoded CA bundle added to the JVM truststore; equivalent to git config http.sslCAInfo <path> for self-signed or internal CAs.
url string
Repository URL
HTTP(S) or SSH URI used for clone and push operations.
username string
Username or organization
Used for HTTP basic authentication and as a fallback commit author.