Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Lint Code Base

on:
push:
branches: [main]
pull_request:
branches: [main]

# Least-privilege token: the linter only needs to read the repo.
permissions:
contents: read

jobs:
build:
name: Lint Markdown
runs-on: ubuntu-latest

steps:
- name: Checkout Code
# Pinned to a full commit SHA (v3) to prevent tag-repointing supply-chain attacks.
uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3
with:
# Full history for super-linter's changed-file detection.
fetch-depth: 0
# Later steps do not need the persisted git credentials.
persist-credentials: false

- name: Lint Markdown
# Pinned to a full commit SHA (v4) to prevent tag-repointing supply-chain attacks.
uses: github/super-linter@985ef206aaca4d560cb9ee2af2b42ba44adc1d55 # v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MARKDOWN: true
LINTER_RULES_PATH: /
MARKDOWN_CONFIG_FILE: .markdownlint.yml
10 changes: 10 additions & 0 deletions .markdownlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Default state for all rules
default: true
# MD013 line-length
MD013: false
# MD024 no-duplicate-heading/no-duplicate-header
MD024: false
# MD033 no-inline-html
MD033: false
# MD036 no-emphasis-as-heading/no-emphasis-as-header
MD036: false
Loading