diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-14 08:06:07 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-14 08:06:07 +0300 |
| commit | 1e42eb369e0663e2b68c934a76c9e4716d9ff280 (patch) | |
| tree | f46a738f65de6eb07fb86faceacce037b14af1a8 /.github/workflows | |
| parent | fc416d44178408b94888255d8ab2c22c4a4205ed (diff) | |
| parent | e87278ef35660a6257b55f4585274a52d3124583 (diff) | |
| download | vyos-documentation-1e42eb369e0663e2b68c934a76c9e4716d9ff280.tar.gz vyos-documentation-1e42eb369e0663e2b68c934a76c9e4716d9ff280.zip | |
Merge pull request #2023 from vyos/yuriy/doc-linter-cleanup-followups
ci(doc-linter): fix 12 accumulated bugs flagged across PR #2014/#2019/#2020 reviews
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/lint-doc.yml | 19 |
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" |
