Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 28 additions & 29 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,56 +4,55 @@
version: 2
updates:
# JavaScript/npm ecosystem
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
day: "monday"
time: "09:00"
timezone: "America/New_York"
interval: 'weekly'
day: 'monday'
time: '09:00'
timezone: 'America/New_York'

# Limit open PRs to avoid noise
open-pull-requests-limit: 10

# Group minor/patch updates to reduce PR noise
groups:
# Group all patch updates together
patch-updates:
patterns:
- "*"
- '*'
update-types:
- "patch"
- 'patch'

# Group dev dependencies
dev-dependencies:
patterns:
- "*"
dependency-type: "development"
- '*'
dependency-type: 'development'
update-types:
- "minor"
- "patch"
- 'minor'
- 'patch'

# Reviewers for dependency PRs (add your GitHub username)
# reviewers:
# - "your-username"

# Labels for PRs
labels:
- "dependencies"
- "automated"
- 'dependencies'
- 'automated'

# Commit message format
commit-message:
prefix: "chore(deps)"
include: "scope"
prefix: 'chore(deps)'
include: 'scope'

# GitHub Actions updates
- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "weekly"
day: "monday"
interval: 'weekly'
day: 'monday'
labels:
- "dependencies"
- "ci"

- 'dependencies'
- 'ci'
15 changes: 7 additions & 8 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ on:
# Run on every PR to main/master
pull_request:
branches: [main, master]

# Run on pushes to main (catches direct commits)
push:
branches: [main, master]

# Weekly scan: Sunday at 2 AM UTC
# Catches newly disclosed vulnerabilities in existing dependencies
schedule:
- cron: '0 2 * * 0'

# Allow manual trigger from GitHub UI
workflow_dispatch:

jobs:
audit:
name: Dependency Security Audit
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -39,7 +39,7 @@ jobs:

- name: Run security audit (critical)
run: yarn npm audit --severity critical

- name: Run security audit (high) - warning only
run: yarn npm audit --severity high || true
# Non-blocking for high severity, but visible in logs
Expand All @@ -52,15 +52,15 @@ jobs:
script: |
const title = '🚨 Security Vulnerability Detected';
const body = `A scheduled security audit found critical vulnerabilities in dependencies.\n\nRun \`yarn npm audit\` locally to see details.\n\n[View workflow run](${context.serverUrl}/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId})`;

// Check if issue already exists
const issues = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open',
labels: 'security'
});

const existingIssue = issues.data.find(i => i.title === title);
if (!existingIssue) {
await github.rest.issues.create({
Expand All @@ -71,4 +71,3 @@ jobs:
labels: ['security', 'dependencies']
});
}

Loading