summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
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"