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.
This commit is contained in:
parent
2d225eef41
commit
8adf876062
2 changed files with 34 additions and 0 deletions
31
.forgejo/workflows/check.yml
Normal file
31
.forgejo/workflows/check.yml
Normal file
|
|
@ -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 .
|
||||
3
.htmlvalidate.json
Normal file
3
.htmlvalidate.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"extends": ["html-validate:recommended"]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue