From 8adf876062b804388081b9a269a812a902817e8c Mon Sep 17 00:00:00 2001 From: "builder (OpenForge)" Date: Sun, 22 Nov 2026 19:00:12 +0000 Subject: [PATCH] Check the page on every push and pull request Two jobs on the radiance runner: html-validate (recommended rules) for index.html, and gitleaks over the whole history. --- .forgejo/workflows/check.yml | 31 +++++++++++++++++++++++++++++++ .htmlvalidate.json | 3 +++ 2 files changed, 34 insertions(+) create mode 100644 .forgejo/workflows/check.yml create mode 100644 .htmlvalidate.json diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml new file mode 100644 index 0000000..ce055b4 --- /dev/null +++ b/.forgejo/workflows/check.yml @@ -0,0 +1,31 @@ +# Checks for the radiance landing page, on every push and pull request: +# the HTML is valid, and the history contains no secrets. +name: check +on: + push: + pull_request: + +jobs: + html: + runs-on: debian + steps: + - uses: actions/checkout@v7 + - name: html-validate + run: npx --yes html-validate@11.21.1 index.html + + secrets: + runs-on: debian + steps: + - uses: actions/checkout@v7 + with: + fetch-depth: 0 + - name: gitleaks + env: + VERSION: 8.30.1 + run: | + base="https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}" + curl -fsSL -o "gitleaks_${VERSION}_linux_x64.tar.gz" "$base/gitleaks_${VERSION}_linux_x64.tar.gz" + curl -fsSL -o checksums.txt "$base/gitleaks_${VERSION}_checksums.txt" + grep " gitleaks_${VERSION}_linux_x64.tar.gz\$" checksums.txt | sha256sum -c - + tar -xzf "gitleaks_${VERSION}_linux_x64.tar.gz" gitleaks + ./gitleaks git --redact --verbose --exit-code 1 . diff --git a/.htmlvalidate.json b/.htmlvalidate.json new file mode 100644 index 0000000..c4d824d --- /dev/null +++ b/.htmlvalidate.json @@ -0,0 +1,3 @@ +{ + "extends": ["html-validate:recommended"] +}