Skip to content

Commit

Permalink
Update markdownlint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adegeo authored Aug 6, 2024
1 parent 369125a commit 0ca88ac
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,23 @@ on:
- ".github/workflows/markdownlint.yml"
- ".github/workflows/markdownlint-problem-matcher.json"

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
permissions:
statuses: write

steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3
- name: Use Node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
- name: Harden Runner
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0
with:
egress-policy: audit

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: DavidAnson/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8 # v16.0.0
with:
node-version: 16.x
- name: Run Markdownlint
run: |
echo "::add-matcher::.github/workflows/markdownlint-problem-matcher.json"
npm i -g markdownlint-cli2
markdownlint-cli2 "**/*.md"
config: ".markdownlint-cli2.jsonc"
globs: "**/*.md"

0 comments on commit 0ca88ac

Please sign in to comment.