feat(generic-includer): add linkIndexAutotitle option for directory titles from index.md #1004
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
| # ⚠️ IMPORTANT: This workflow is a template from diplodoc/lint/scaffolding | |
| # Do not edit this file in other packages - it is automatically copied from here. | |
| # To modify this workflow, edit it in diplodoc/devops/lint/scaffolding/.github/workflows/ | |
| # and then run the scaffolding update process. | |
| name: Security | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| schedule: | |
| # Run weekly security scan on Monday at 6:00 UTC | |
| - cron: '0 6 * * 1' | |
| jobs: | |
| audit: | |
| name: Security audit | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ vars.NODE_VERSION }} | |
| cache: 'npm' | |
| - name: Install latest npm (>= 11.5.1) | |
| run: | | |
| [ "$(printf '%s\n' "11.5.1" "$(npm -v)" | sort -V | head -n1)" = "11.5.1" ] || npm install -g npm@11.5.1 | |
| shell: bash | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run npm audit | |
| id: audit | |
| run: npm audit --audit-level=moderate | |
| continue-on-error: true | |
| - name: Upload audit results | |
| if: steps.audit.outcome == 'failure' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: npm-audit-report | |
| path: | | |
| package-lock.json | |
| retention-days: 7 |