Skip to content

Commit

Permalink
[INTERNAL] Audit CI: Enable check on main branch
Browse files Browse the repository at this point in the history
Also checking the main branch to be notified about vulnerabilities based
on the released packages.
Although the main branch is covered by GitHub security checks and
dependabot updates, it could be missed that some vulnerabilities have
been solved already but not released yet.

Also removing the unnecessary "npm install". Audit CI checks based on
the existing lockfile.
  • Loading branch information
matz3 committed Dec 17, 2024
1 parent 42fc9b3 commit 8dbb173
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/security-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
branch: ["v3"] # List of branches to run the security audit uppon
branch: ["main", "v3"] # List of branches to run the security audit on

steps:
- name: Checkout '${{ matrix.branch }}' branch
uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}

- name: install dependencies
run: npm ci

- name: Use audit-ci
run: npx audit-ci@^6 --config ./audit-ci.jsonc
run: npx audit-ci@^7 --config ./audit-ci.jsonc
6 changes: 6 additions & 0 deletions audit-ci.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
// $schema provides code completion hints to IDEs.
"$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",
"low": true,
"allowlist": []
}

0 comments on commit 8dbb173

Please sign in to comment.