Author SHA1 Message Date
ilia ea00c8dbb4 ci: sync gitleaks allowlist 2026-07-12 16:23:47 -05:00
ilia 27b21b4701 ci: sync workflow template 2026-07-12 16:23:46 -05:00
ilia e1bf495afa ci: sync gitleaks allowlist
CI / skip-ci-check (pull_request) Successful in 10s
CI / docker-ci (pull_request) Successful in 14s
CI / secret-scan (pull_request) Successful in 12s
2026-05-29 21:31:12 -05:00
ilia fd8eec3c70 ci: refresh workflow (re-run pipelines) 2026-05-29 21:31:12 -05:00
ilia e5f383786f ci: sync gitleaks allowlist
CI / skip-ci-check (pull_request) Successful in 12s
CI / docker-ci (pull_request) Successful in 13s
CI / secret-scan (pull_request) Successful in 13s
2026-05-29 21:27:41 -05:00
ilia 9e97261ef6 ci: refresh workflow (re-run pipelines) 2026-05-29 21:27:41 -05:00
ilia 529971dcf4 ci: sync gitleaks allowlist
CI / skip-ci-check (pull_request) Successful in 13s
CI / docker-ci (pull_request) Successful in 12s
CI / secret-scan (pull_request) Successful in 14s
2026-05-29 21:23:15 -05:00
ilia db36aa2a41 ci: refresh workflow (re-run pipelines) 2026-05-29 21:23:14 -05:00
ilia 75bde7ea38 ci: add homelab gitleaks allowlist
CI / skip-ci-check (pull_request) Successful in 13s
CI / docker-ci (pull_request) Successful in 13s
CI / secret-scan (pull_request) Successful in 14s
2026-05-29 21:18:48 -05:00
ilia 9604812daa ci: refresh workflow (re-run pipelines) 2026-05-29 21:18:46 -05:00
ilia 584eff4c2a ci: refresh workflow (re-run pipelines)
CI / skip-ci-check (pull_request) Successful in 11s
CI / docker-ci (pull_request) Failing after 9s
CI / secret-scan (pull_request) Failing after 14s
2026-05-29 20:29:42 -05:00
ilia c57f3012e9 ci: refresh workflow (re-run pipelines)
CI / skip-ci-check (pull_request) Successful in 11s
CI / docker-ci (pull_request) Failing after 9s
CI / secret-scan (pull_request) Failing after 14s
2026-05-29 20:27:17 -05:00
ilia 20c1f03dff ci: sync workflow template
CI / skip-ci-check (pull_request) Successful in 11s
CI / docker-ci (pull_request) Failing after 11s
CI / secret-scan (pull_request) Failing after 16s
2026-05-29 20:25:05 -05:00
ilia 3ab85da567 ci: refresh workflow (re-run pipelines)
CI / skip-ci-check (pull_request) Successful in 11s
CI / docker-ci (pull_request) Failing after 11s
CI / secret-scan (pull_request) Failing after 15s
2026-05-29 20:19:46 -05:00
ilia 07e6e3c5ae ci: sync workflow template (node container + host fixes)
CI / skip-ci-check (pull_request) Successful in 11s
CI / docker-ci (pull_request) Failing after 11s
CI / secret-scan (pull_request) Failing after 15s
2026-05-29 20:14:04 -05:00
ilia a8cf867fe0 ci: add homelab Gitea Actions workflow (ci-docker.yml)
CI / skip-ci-check (pull_request) Failing after 10s
CI / docker-ci (pull_request) Has been skipped
CI / secret-scan (pull_request) Has been skipped
2026-05-29 16:14:54 -05:00
2 changed files with 96 additions and 0 deletions
+68
View File
@@ -0,0 +1,68 @@
---
# Homelab CI — Docker/heavy lane (git-ci-02)
name: CI
on:
push:
branches: [master, main]
pull_request:
types: [opened, synchronize, reopened]
jobs:
skip-ci-check:
runs-on: [homelab, self-hosted, linux]
container:
image: node:20-bookworm
outputs:
should-skip: ${{ steps.check.outputs.skip }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- id: check
run: |
SKIP=0
BRANCH="${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}"
MSG="${GITHUB_EVENT_HEAD_COMMIT_MESSAGE:-$(git log -1 --pretty=%B 2>/dev/null || true)}"
echo "$BRANCH" "$MSG" | grep -qi '@skipci' && SKIP=1
echo "skip=$SKIP" >> $GITHUB_OUTPUT
docker-ci:
needs: skip-ci-check
if: needs.skip-ci-check.outputs.should-skip != '1'
runs-on: [homelab, self-hosted, linux, heavy, docker]
steps:
- uses: actions/checkout@v4
- name: Hadolint
run: |
shopt -s globstar nullglob
found=0
for f in Dockerfile docker/**/Dockerfile */Dockerfile; do
[ -f "$f" ] || continue
found=1
# Warnings (unpinned apt/pip) are advisory; only errors fail the job
docker run --rm -i hadolint/hadolint hadolint --failure-threshold error - < "$f"
done
[ "$found" -eq 1 ] || echo "No Dockerfile — skip hadolint"
- name: Trivy config scan (advisory)
run: |
docker run --rm -v "$PWD:/repo" aquasec/trivy:latest config /repo || true
secret-scan:
needs: skip-ci-check
if: needs.skip-ci-check.outputs.should-skip != '1'
runs-on: [homelab, self-hosted, linux, heavy]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Gitleaks
run: |
extra=""
if [ -f .gitleaks.toml ]; then
extra="--config /repo/.gitleaks.toml"
fi
docker run --rm -v "$PWD:/repo" ghcr.io/gitleaks/gitleaks:latest \
detect --source /repo --no-banner --redact ${extra}
+28
View File
@@ -0,0 +1,28 @@
# Homelab bootstrap — gitleaks allowlist (tests, examples, placeholders)
#
# IMPORTANT: `useDefault = true` is required — without it gitleaks loads ONLY
# this file (title + allowlist) with ZERO detection rules, so it would never
# flag a real secret. Fixed 2026-07 (security-hardening track); if you're
# re-pushing this template to a repo that already had the old version, that
# repo's secret scanning was a no-op until this lands.
title = "homelab gitea bootstrap"
[extend]
useDefault = true
[allowlist]
description = "Test fixtures and example configs are not production secrets"
paths = [
'''(?i).*\.test\.(ts|tsx|js|jsx|py)$''',
'''(?i).*\.spec\.(ts|tsx|js|jsx)$''',
'''(?i).*/tests/.*''',
'''(?i).*/__tests__/.*''',
'''(?i).*\.example\.(yml|yaml|env|json|toml)$''',
'''(?i).*vault\.example\.(yml|yaml)$''',
'''(?i).*\.env\.example$''',
]
regexes = [
'''(?i)(invalid|fake|dummy|placeholder|example|changeme|change_me|not-a-real)''',
'''(?i)sk-or-invalid''',
'''(?i)msk-or-invalid''',
]