summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-14 10:23:44 +0300
committerGitHub <noreply@github.com>2026-05-14 10:23:44 +0300
commitb438d113486c1be4094f95ffe15bf67fbc6521be (patch)
treec1caa4a31183a8b0c63ec57f8f776d599760948b /.github/workflows
parent32c077537ea04d69f9fa30ea267be94b59eedc33 (diff)
parent250f3edc21991de39ca0fb4ab698e736037afbc8 (diff)
downloadvyos-documentation-b438d113486c1be4094f95ffe15bf67fbc6521be.tar.gz
vyos-documentation-b438d113486c1be4094f95ffe15bf67fbc6521be.zip
Merge pull request #2042 from vyos/mergify/bp/sagitta/pr-2023
ci(doc-linter): fix 12 accumulated bugs flagged across PR #2014/#2019/#2020 reviews (backport #2023)
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint-doc.yml19
1 files changed, 14 insertions, 5 deletions
diff --git a/.github/workflows/lint-doc.yml b/.github/workflows/lint-doc.yml
index d7f25f38..0bd7a197 100644
--- a/.github/workflows/lint-doc.yml
+++ b/.github/workflows/lint-doc.yml
@@ -11,24 +11,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
- uses: actions/checkout@v6
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Bullfrog Secure Runner
continue-on-error: true
- uses: bullfrogsec/bullfrog@v0.8.4
+ uses: bullfrogsec/bullfrog@1831f79cce8ad602eef14d2163873f27081ebfb3 # v0.8.4
with:
egress-policy: audit
- name: Get File Changes
id: file_changes
- uses: trilom/file-changes-action@v1.2.4
+ uses: trilom/file-changes-action@a6ca26c14274c33b15e6499323aac178af06ad4b # v1.2.4
- name: Set up Python
- uses: actions/setup-python@v6
+ uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
with:
python-version: '3.x'
- name: run doc linter
env:
+ # Pass modified + added + renamed file lists. `files_modified`
+ # alone misses newly-added pages — a PR adding a new doc with
+ # long lines or real public IPs would otherwise slip through.
FILES_MODIFIED: ${{ steps.file_changes.outputs.files_modified }}
- run: python scripts/doc-linter.py "$FILES_MODIFIED"
+ FILES_ADDED: ${{ steps.file_changes.outputs.files_added }}
+ FILES_RENAMED: ${{ steps.file_changes.outputs.files_renamed }}
+ run: |
+ python scripts/doc-linter.py \
+ "$FILES_MODIFIED" \
+ "$FILES_ADDED" \
+ "$FILES_RENAMED"