Skip to content

Commit d2f3b2a

Browse files
authored
Docs: Add HTMLHint SARIF Upload to Website GH Action (#1642)
* Add HTMLHint SARIF Upload to Website GH Action * Update website.yml
1 parent aad02e1 commit d2f3b2a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/website.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,16 @@ jobs:
3535
run: |
3636
cd website
3737
npm run build
38+
39+
- name: Run HTMLHint (SARIF)
40+
run: |
41+
cd website
42+
npm run htmlhint-sarif || true
43+
# Continue even if HTMLHint finds issues
44+
45+
- name: Upload SARIF file
46+
uses: github/codeql-action/upload-sarif@v3
47+
with:
48+
sarif_file: website/htmlhint.sarif
49+
category: HTMLHint
50+
if: always()

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"start": "astro dev",
2121
"htmlhint": "npx htmlhint .",
2222
"htmlhint-report": "npx htmlhint . --format html",
23+
"htmlhint-sarif": "npx htmlhint . --format sarif",
2324
"pa11y-ci": "npx pa11y-ci https://htmlhint.com/"
2425
},
2526
"dependencies": {

0 commit comments

Comments
 (0)