chore(master): release 5.46.0 (#2006) #1352
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 and install dependencies | |
| uses: diplodoc-platform/setup-node-action@v1 | |
| with: | |
| node-version: ${{ vars.NODE_VERSION || '24' }} | |
| - 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 |