https://github.com/step-security/action-markdownlint
Run markdownlint with reviewdog. Secure drop-in replacement for reviewdog/action-markdownlint.
https://github.com/step-security/action-markdownlint
step-security-maintained-actions
Last synced: 2 months ago
JSON representation
Run markdownlint with reviewdog. Secure drop-in replacement for reviewdog/action-markdownlint.
- Host: GitHub
- URL: https://github.com/step-security/action-markdownlint
- Owner: step-security
- License: mit
- Created: 2025-05-15T15:19:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-12-30T06:20:09.000Z (5 months ago)
- Last Synced: 2026-01-03T00:23:33.829Z (5 months ago)
- Topics: step-security-maintained-actions
- Language: Shell
- Homepage: https://docs.stepsecurity.io/actions/stepsecurity-maintained-actions
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# GitHub Action: Run markdownlint with reviewdog
Based on [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck)
[](https://github.com/prologic/action-markdownlint/actions)
[](https://github.com/prologic/action-markdownlint/releases)
This action runs [markdownlint](https://github.com/DavidAnson/markdownlint) with
[reviewdog](https://github.com/reviewdog/reviewdog) on pull requests to improve
code review experience.
## Inputs
```yml
inputs:
github_token:
description: 'GITHUB_TOKEN.'
default: '${{ github.token }}'
### Flags for reviewdog ###
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: 'Reporter of reviewdog command [github-check,github-pr-review].'
default: 'github-check'
filter_mode:
description: |
Filtering mode for the reviewdog command [added,diff_context,file,nofilter].
Default is added.
default: 'added'
fail_level:
description: |
If set to `none`, always use exit code 0 for reviewdog.
Otherwise, exit code 1 for reviewdog if it finds at least 1 issue with severity greater than or equal to the given level.
Possible values: [none,any,info,warning,error]
Default is `none`.
default: 'none'
fail_on_error:
description: |
Deprecated, use `fail_level` instead.
Exit code for reviewdog when errors are found [true,false]
Default is `false`.
deprecationMessage: Deprecated, use `fail_level` instead.
default: 'false'
reviewdog_flags:
description: 'Additional reviewdog flags'
default: ''
### Flags for markdownlint-cli ###
markdownlint_flags:
description: "Options of markdownlint-cli command. Default: '.'"
default: '.'
```
## Example usage
### [.github/workflows/reviewdog.yml](.github/workflows/reviewdog.yml)
```yml
name: reviewdog
on: [pull_request]
jobs:
markdownlint:
name: runner / markdownlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: markdownlint
uses: step-security/action-markdownlint@3667398db9118d7e78f7a63d10e26ce454ba5f58 # v0.26.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
```