Skip to content
Merged
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock.json linguist-generated=true
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ updates:
directory: /
schedule:
interval: daily

- package-ecosystem: npm
directory: /
schedule:
interval: daily
versioning-strategy: lockfile-only
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.envrc
node_modules/
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ repos:
- id: pretty-format-json
args:
- --autofix
exclude: package-lock.json
- id: trailing-whitespace
exclude: examples/ignore/example-ignore.md

Expand All @@ -37,4 +38,12 @@ repos:
hooks:
- id: actionlint-docker

- repo: local
hooks:
- id: package-lock
name: package.json and package-lock.json are in step
entry: npm ci --omit=dev --silent
language: system
pass_filenames: false

minimum_pre_commit_version: !!str 4.2
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM node:lts-alpine@sha256:41e4389f3d988d2ed55392df4db1420ad048ae53324a8e2b7c6d19508288107e

RUN npm install --global --omit=dev --update-notifier=false markdownlint-cli@0.43.0
COPY package.json package-lock.json /
RUN npm ci --omit=dev

COPY entrypoint.sh /entrypoint.sh
COPY markdownlint-problem-matcher.json /markdownlint-problem-matcher.json
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Basic usage with all options enabled:

```yaml
- name: markdownlint-cli
uses: nosborn/github-action-markdown-cli@v3.3.0
uses: nosborn/github-action-markdown-cli@v3.4.0
with:
files: .
config_file: .markdownlint.yaml
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cp /markdownlint-problem-matcher.json "${PROBLEM_MATCHER:?}" || exit
echo "::add-matcher::${PROBLEM_MATCHER:?}"

# shellcheck disable=SC2086
${MARKDOWNLINT} ${INPUT_FILES:?}
npx ${MARKDOWNLINT} ${INPUT_FILES:?}
Copy link

Copilot AI Jun 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unquoted ${INPUT_FILES} can lead to word splitting or globbing issues when file names contain spaces or special characters. Consider quoting it as "${INPUT_FILES:?}".

Suggested change
npx ${MARKDOWNLINT} ${INPUT_FILES:?}
npx ${MARKDOWNLINT} "${INPUT_FILES:?}"

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bad bot!

readonly RC=$?

echo '::remove-matcher owner=markdownlint::'
Expand Down
Loading
Loading