-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add markdown linter and fix lint errors
Signed-off-by: Nathan Weinberg <[email protected]>
- Loading branch information
1 parent
872ca7b
commit a37e525
Showing
5 changed files
with
80 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: docs | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths: | ||
- '**/*.md' | ||
- '.markdownlint-cli2.yaml' | ||
pull_request: | ||
branches: ["main"] | ||
paths: | ||
- '**/*.md' | ||
- '.markdownlint-cli2.yaml' | ||
|
||
jobs: | ||
markdown-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: markdownlint-cli2-action | ||
uses: DavidAnson/markdownlint-cli2-action@v15 | ||
with: | ||
globs: '**/*.md' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
config: | ||
line-length: false | ||
no-emphasis-as-header: false | ||
first-line-heading: false | ||
code-block-style: false | ||
no-duplicate-header: false | ||
single-trailing-newline: false | ||
no-inline-html: false | ||
no-alt-text: false | ||
globs: | ||
- "**/*.md" | ||
ignores: | ||
- ".tox/**" | ||
- "venv/**" | ||
- ".venv/**" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
.PHONY: help | ||
help: | ||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-18s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
||
# | ||
# If you want to see the full commands, run: | ||
# NOISY_BUILD=y make | ||
# | ||
ifeq ($(NOISY_BUILD),) | ||
ECHO_PREFIX=@ | ||
CMD_PREFIX=@ | ||
PIPE_DEV_NULL=> /dev/null 2> /dev/null | ||
else | ||
ECHO_PREFIX=@\# | ||
CMD_PREFIX= | ||
PIPE_DEV_NULL= | ||
endif | ||
|
||
.PHONY: md-lint | ||
md-lint: ## Lint markdown files | ||
$(ECHO_PREFIX) printf " %-12s ./...\n" "[MD LINT]" | ||
$(CMD_PREFIX) podman run --rm -v $(CURDIR):/workdir --security-opt label=disable docker.io/davidanson/markdownlint-cli2:v0.12.1 > /dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,15 +2,15 @@ | |
|
||
The InstructLab team and community take security bugs seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions. | ||
|
||
# Reporting a Vulnerability | ||
## Reporting a Vulnerability | ||
|
||
If you think you've identified a security issue in an InstructLab project repository, please DO NOT report the issue publicly via the GitHub issue tracker, Slack Workspace, etc. | ||
If you think you've identified a security issue in an InstructLab project repository, please DO NOT report the issue publicly via the GitHub issue tracker, Slack Workspace, etc. | ||
|
||
Instead, send an email with as many details as possible to [[email protected]](mailto:[email protected]). This is a private mailing list for the core maintainers. | ||
|
||
Please do not create a public issue. | ||
|
||
# Security Vulnerability Response | ||
## Security Vulnerability Response | ||
|
||
Each report is acknowledged and analyzed by the core maintainers within 3 working days. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters