Skip to content

Commit

Permalink
feat: update audit package
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Dec 16, 2024
1 parent bb4a4f9 commit b8a0991
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
security-events: write

packages: read

actions: read
contents: read

Expand All @@ -31,6 +29,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
Expand Down Expand Up @@ -61,6 +60,11 @@ jobs:
npm install --audit --prefer-offline
npm audit --json > npm-audit-report.json || true
cat npm-audit-report.json
elif [ -f "yarn.lock" ]; then
echo "Detected Yarn project. Running yarn audit..."
yarn install --prefer-offline
yarn audit --json > yarn-audit-report.json || true
cat yarn-audit-report.json
else
echo "No recognized lockfile found. Skipping dependency audit."
exit 1
Expand Down

0 comments on commit b8a0991

Please sign in to comment.