diff --git a/.gitea/workflows/health-check.yml b/.gitea/workflows/health-check.yml new file mode 100644 index 0000000..90aece5 --- /dev/null +++ b/.gitea/workflows/health-check.yml @@ -0,0 +1,18 @@ +name: Health Check (SIAX Cloud) +on: + workflow_dispatch: + schedule: + - cron: "0 6 * * 1" +jobs: + health: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Required files + run: | + for f in README.md LICENSE .gitignore; do [ -f "$f" ] || echo "::warning file=$f,title=Missing::$f is missing"; done + [ -f .gitea/workflows/ci.yml ] || echo "::warning title=No CI::No CI workflow found" + - name: Install Trivy + run: curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin + - name: Secret scan + run: trivy fs --scanners secret --exit-code 0 . \ No newline at end of file