mirror of
https://github.com/semgrep/skills.git
synced 2026-09-20 14:21:26 +08:00
547899e7bc
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 6.3.0. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v6...v6.3.0) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: Security Audit
|
|
|
|
on:
|
|
schedule:
|
|
# Run weekly on Mondays at 9:00 UTC
|
|
- cron: '0 9 * * 1'
|
|
push:
|
|
paths:
|
|
- '**/pnpm-lock.yaml'
|
|
- '**/package.json'
|
|
pull_request:
|
|
paths:
|
|
- '**/pnpm-lock.yaml'
|
|
- '**/package.json'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
audit:
|
|
name: Dependency Audit
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6.3.0
|
|
with:
|
|
node-version: '20'
|
|
cache: 'pnpm'
|
|
cache-dependency-path: packages/skill-build/pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
run: make install
|
|
|
|
- name: Run security audit
|
|
working-directory: packages/skill-build
|
|
run: pnpm audit --audit-level=moderate
|
|
continue-on-error: true
|
|
|
|
- name: Check for outdated dependencies
|
|
working-directory: packages/skill-build
|
|
run: |
|
|
echo "## Outdated Dependencies" >> $GITHUB_STEP_SUMMARY
|
|
echo "" >> $GITHUB_STEP_SUMMARY
|
|
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
|
pnpm outdated || true
|
|
pnpm outdated >> $GITHUB_STEP_SUMMARY 2>&1 || echo "All dependencies are up to date" >> $GITHUB_STEP_SUMMARY
|
|
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
|
|
|