fix(deps): remediate xmldom vulnerability (POT-2475) #57
Workflow file for this run
This file contains hidden or 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
| name: Docs check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| permissions: | |
| contents: read | |
| jobs: | |
| docs-check: | |
| name: Docs check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Spoke | |
| uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: "22" | |
| cache: npm | |
| cache-dependency-path: tests/docs/package-lock.json | |
| - name: Install docs-check dependencies | |
| working-directory: tests/docs | |
| run: npm ci | |
| - name: Run docs-check tests | |
| working-directory: tests/docs | |
| run: node --test | |
| - name: List changed files | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| run: | | |
| set -euo pipefail | |
| if [ -z "${BASE_SHA:-}" ] || [ -z "${HEAD_SHA:-}" ]; then | |
| echo "::error::Docs check must run on pull_request so base/head SHAs are available." | |
| exit 1 | |
| fi | |
| git diff --name-only "$BASE_SHA...$HEAD_SHA" > /tmp/changed-files.txt | |
| echo "Changed files:" | |
| cat /tmp/changed-files.txt | |
| - name: Run docs contract | |
| env: | |
| DOCS_CONFIG_PATH: ${{ github.workspace }}/docs/config.json | |
| CHANGED_FILES_PATH: /tmp/changed-files.txt | |
| SPOKE_ROOT: ${{ github.workspace }} | |
| run: node tests/docs/docs-check.mjs |