Skip to content

ci(deps): bump trufflesecurity/trufflehog from 3.95.9 to 3.96.0 in the security-actions group #571

ci(deps): bump trufflesecurity/trufflehog from 3.95.9 to 3.96.0 in the security-actions group

ci(deps): bump trufflesecurity/trufflehog from 3.95.9 to 3.96.0 in the security-actions group #571

Workflow file for this run

name: Security Scan
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
on:
push:
branches: [main, master, develop]
paths-ignore:
- '**.md'
- 'issue/**'
pull_request:
branches: [main, master, develop]
paths-ignore:
- '**.md'
- 'issue/**'
merge_group:
types: [checks_requested]
schedule:
- cron: '0 0 * * 0'
defaults:
run:
working-directory: ./SortVision
jobs:
security-audit:
name: Security Vulnerability Scan
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Setup SortVision
uses: ./.github/actions/setup-sortvision
with:
node-version: '24'
# Fails the job on known high/critical vulnerabilities in production dependencies.
- name: Audit production dependencies (high/critical)
run: pnpm audit --production --audit-level=high
- name: Write audit JSON for artifact
if: always()
run: (pnpm audit --production --json > audit-results.json) || echo '{}' > audit-results.json
- name: Check for secrets
uses: trufflesecurity/trufflehog@6f3c981e7b77f235fd2702dd74af25fc4b72bf11 # v3.96.0
with:
extra_args: --only-verified
- name: Upload audit results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: security-audit-results
path: SortVision/audit-results.json
retention-days: 90
- name: Generate security summary
if: always()
run: |
echo "## Security Scan Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "pnpm audit: fails on **high** and **critical** production issues." >> $GITHUB_STEP_SUMMARY
echo "Moderate/low advisories: review \`pnpm audit\` locally or Dependabot alerts." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "Scan completed at $(date -u +%Y-%m-%dT%H:%MZ)" >> $GITHUB_STEP_SUMMARY
dependency-review:
name: Dependency Review
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
contents: read
pull-requests: read
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Dependency Review
uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: moderate
base-ref: ${{ github.event.pull_request.base.sha }}
head-ref: ${{ github.event.pull_request.head.sha }}