Skip to content

Add markdown linter

Add markdown linter #1

Workflow file for this run

name: actions-lint
on:
push:
branches: [ master ]
paths-ignore:
- '**/*.gitattributes'
- '**/*.gitignore'
- '**/*.md'
pull_request:
branches: [ master ]
workflow_dispatch:
permissions: {}
env:
FORCE_COLOR: 3
TERM: xterm
ZIZMOR_VERSION: '1.16.3'
jobs:
lint:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout code
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
with:
filter: 'tree:0'
persist-credentials: false
show-progress: false
- name: Add actionlint problem matcher
run: echo "::add-matcher::.github/actionlint-matcher.json"
- name: Lint workflows
uses: docker://rhysd/actionlint:1.7.9@sha256:a0383f60d92601e2694e24b24d37df7b6a40bed7cedbc447611c50009bf02d94
with:
args: -color
- name: Lint workflows with zizmor
uses: zizmorcore/zizmor-action@e673c3917a1aef3c65c972347ed84ccd013ecda4 # v0.2.0
with:
persona: pedantic
version: ${{ env.ZIZMOR_VERSION }}
- name: Lint markdown
uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v21.0.0
with:
config: '.markdownlint.json'
globs: |
**/*.md