chore(security): Updates for running bun audit during CI and dependabot PR version update settings (#5836)
chore(security): Update circleci config to only run bun audit for lockfile changes. Disabled all dependabot pull requests for bun and npm version updates.
This commit is contained in:
parent
51d267e707
commit
555c87f1c5
@ -112,11 +112,22 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/repo
|
at: ~/repo
|
||||||
# SECURITY AUDIT
|
# SECURITY AUDIT - only when bun.lock has changed
|
||||||
- run:
|
- run:
|
||||||
name: 'Security Audit - High Risk Vulnerabilities'
|
name: 'Security Audit - High Risk Vulnerabilities'
|
||||||
command: |
|
command: |
|
||||||
echo "🔍 Running bun audit for security vulnerabilities..."
|
git fetch origin master 2>/dev/null || true
|
||||||
|
BASE_REF=$(git merge-base HEAD origin/master 2>/dev/null)
|
||||||
|
if [[ -z "$BASE_REF" ]]; then
|
||||||
|
echo "Could not determine base ref (e.g. shallow clone or no origin/master), skipping security audit."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
CHANGED_FILES=$(git diff --name-only origin/master...HEAD 2>/dev/null || echo "")
|
||||||
|
if ! echo "$CHANGED_FILES" | grep -qx 'bun.lock'; then
|
||||||
|
echo "⏭️ bun.lock unchanged - skipping security audit."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "🔍 bun.lock changed - running bun audit for security vulnerabilities..."
|
||||||
echo "Checking for HIGH-RISK vulnerabilities..."
|
echo "Checking for HIGH-RISK vulnerabilities..."
|
||||||
|
|
||||||
# Define ignored vulnerabilities with comments
|
# Define ignored vulnerabilities with comments
|
||||||
|
|||||||
4
.github/.dependabot.yaml
vendored
4
.github/.dependabot.yaml
vendored
@ -2,6 +2,8 @@ version: 2
|
|||||||
enable-beta-ecosystems: true
|
enable-beta-ecosystems: true
|
||||||
updates:
|
updates:
|
||||||
- package-ecosystem: 'bun'
|
- package-ecosystem: 'bun'
|
||||||
|
# Disable all pull requests for bun version updates.
|
||||||
|
open-pull-requests-limit: 0
|
||||||
directory: '/'
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: 'daily'
|
interval: 'daily'
|
||||||
@ -10,6 +12,8 @@ updates:
|
|||||||
prefix: 'chore'
|
prefix: 'chore'
|
||||||
include: 'scope'
|
include: 'scope'
|
||||||
- package-ecosystem: 'npm'
|
- package-ecosystem: 'npm'
|
||||||
|
# Disable all pull requests for npm version updates.
|
||||||
|
open-pull-requests-limit: 0
|
||||||
directory: '/'
|
directory: '/'
|
||||||
schedule:
|
schedule:
|
||||||
interval: 'daily'
|
interval: 'daily'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user