Fix actions
Some checks failed
Build and Push Docker Images / build-and-push (push) Failing after 42s
Validate Kubernetes & YAML / validate-all (push) Failing after 40s

This commit is contained in:
Adrien Bouvais 2026-08-17 09:25:26 +02:00
parent 287725306a
commit 0b87f5ad97
2 changed files with 7 additions and 22 deletions

View File

@ -12,8 +12,10 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fix Git permissions for TruffleHog Docker container
run: sudo chown -R root:root .
- name: TruffleHog Secret Scan - name: TruffleHog Secret Scan
uses: trufflesecurity/trufflehog@main uses: trufflesecurity/trufflehog@main
with: with:
# Optional: Add any extra CLI arguments here
extra_args: --only-verified extra_args: --only-verified

View File

@ -26,31 +26,14 @@ jobs:
tar xf kubeconform-linux-amd64.tar.gz tar xf kubeconform-linux-amd64.tar.gz
sudo mv kubeconform /usr/local/bin/ sudo mv kubeconform /usr/local/bin/
- name: Create Yamllint Config - name: Lint Pure YAML Files
run: | run: yamllint ./tenants
# We must ignore the Helm templates directory because Go templating {{ }}
# breaks standard YAML parsers.
echo -e "extends: default\nignore: |\n charts/**/templates/\n" > .yamllint.yaml
- name: Step 1 - Lint Pure YAML Files - name: Lint Helm Chart Syntax
run: yamllint .
- name: Step 2 - Lint Helm Chart Syntax
run: helm lint charts/tenant/ run: helm lint charts/tenant/
- name: Step 3 - Validate Static Manifests & ArgoCD CRDs - name: Validate Tenant Configurations against Chart
run: | run: |
# We use a third-party CRD catalog so kubeconform understands
# ArgoCD's Application and ApplicationSet kinds in your gitops/ folder.
kubeconform -strict -summary \
-schema-location default \
-schema-location 'https://raw.githubusercontent.com/datreeio/CRDs-catalog/main/{{.Group}}/{{.ResourceKind}}_{{.ResourceAPIVersion}}.json' \
minio/ gitops/
- name: Step 4 - Validate Tenant Configurations against Chart
run: |
# Loop through each tenant, inject their config into the Helm chart,
# and validate the resulting Kubernetes manifests.
for tenant_dir in tenants/*; do for tenant_dir in tenants/*; do
if [ -d "$tenant_dir" ]; then if [ -d "$tenant_dir" ]; then
tenant_name=$(basename "$tenant_dir") tenant_name=$(basename "$tenant_dir")