Skip to content

Commit 5ec7828

Browse files
authored
Merge branch 'main' into max-updates-html-tag
2 parents bfcd8b5 + a7ef03c commit 5ec7828

File tree

9 files changed

+515
-47
lines changed

9 files changed

+515
-47
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,24 @@
33
# MD013/line-length Line length
44
MD013: false
55

6+
# MD024/no-duplicate-heading No duplicate headings
7+
MD024: false
8+
9+
# MD051/link-fragments Link fragments
10+
MD051: false
11+
12+
# MD033/no-inline-html Inline HTML
13+
MD033:
14+
allowed_elements: ["div", "h1"]
15+
616
# MD036/no-emphasis-as-heading Emphasis used instead of a heading
717
MD036: false
818

19+
# MD041/first-line-heading/first-line-h1
20+
MD041: false
21+
922
# MD042/no-empty-links No empty links
1023
MD042: false
24+
25+
# MD060/table-column-style Table column style
26+
MD060: false
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# https://github.com/j178/prek
2+
name: Audit hooks
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
pre-commit:
14+
name: 🏃‍♂️‍➡️ prek on ${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest]
19+
steps:
20+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
with:
23+
persist-credentials: false
24+
- name: Run prek-action
25+
uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
26+
with:
27+
install-only: true
28+
- name: Run manual prek hooks
29+
run: prek run --all-files --config .pre-commit-config-audit.yaml
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# https://github.com/j178/prek
2+
name: Manual hooks
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
pre-commit:
14+
name: 🏃‍♂️‍➡️ prek on ${{ matrix.os }}
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest]
19+
steps:
20+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
with:
23+
persist-credentials: false
24+
- name: Run prek-action
25+
uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
26+
with:
27+
install-only: true
28+
- name: Run manual prek hooks
29+
run: prek run --all-files --hook-stage manual

.github/workflows/pre-commit.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
name: pre-commit
1+
# https://github.com/j178/prek
2+
name: Standard hooks
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches: [main]
28

39
permissions:
410
contents: read
511

6-
on: [pull_request]
7-
812
jobs:
913
pre-commit:
10-
name: 🏃🏼 Pre-commit on ${{ matrix.os }}
14+
name: 🏃🏿‍♂️‍➡️ Run prek on ${{ matrix.os }}
1115
runs-on: ${{ matrix.os }}
1216
strategy:
1317
matrix:
1418
os: [ubuntu-latest, windows-latest]
1519
steps:
16-
- name: Checkout Code
20+
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
1721
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1822
with:
19-
fetch-depth: 0
2023
persist-credentials: false
2124
- name: Run prek-action
2225
uses: j178/prek-action@53276d8b0d10f8b6672aa85b4588c6921d0370cc # v2.0.1
26+
with:
27+
extra-args: --all-files

.github/workflows/super-linter.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Super-Linter
22

3-
on: [pull_request]
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
48

59
permissions: {}
610

.pre-commit-config-audit.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
default_stages: [pre-commit, pre-push]
2+
minimum_prek_version: "0.2.22"
3+
default_language_version:
4+
python: python3
5+
node: 24.14.0
6+
exclude: |
7+
(?x)^(
8+
\.git/|
9+
_site/|
10+
node_modules/|
11+
)
12+
13+
repos:
14+
- repo: meta
15+
hooks:
16+
- id: identity
17+
name: Run identity
18+
description: Run the identity check
19+
- id: check-hooks-apply
20+
name: run check-hooks-apply
21+
description: check that all the hooks apply to the repository
22+
23+
- repo: local
24+
hooks:
25+
- id: npm-audit
26+
name: run npm-audit
27+
description: Run npm audit
28+
entry: npm audit
29+
language: system
30+
pass_filenames: false

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ repos:
4343
entry: npm run build
4444
language: system
4545
pass_filenames: false
46-
- id: npm-audit
47-
name: run npm-audit
48-
description: Run npm audit
49-
entry: npm audit
50-
language: system
51-
pass_filenames: false
5246

5347
# GO-based
5448
- repo: https://github.com/gitleaks/gitleaks

0 commit comments

Comments
 (0)