Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ‘· Add dep audit back into ci check workflow

Alicia Sykesead5df9abcf8
diff --git a/.github/workflows/pr-quality-check.yml b/.github/workflows/pr-quality-check.yml
index 51b3af22..60fd2490 100644
--- a/.github/workflows/pr-quality-check.yml
+++ b/.github/workflows/pr-quality-check.yml
@@ -11,6 +11,23 @@ concurrency:
cancel-in-progress: true
jobs:
+ changes:
+ name: πŸ”Ž Detect Changes
+ runs-on: ubuntu-latest
+ outputs:
+ lockfile: ${{ steps.filter.outputs.lockfile }}
+ steps:
+ - name: πŸ›ŽοΈ Checkout Code
+ uses: actions/checkout@v6
+
+ - name: πŸ”Ž Filter Paths
+ uses: dorny/paths-filter@v3
+ id: filter
+ with:
+ filters: |
+ lockfile:
+ - 'yarn.lock'
+
lint:
name: πŸ“ Lint Code
runs-on: ubuntu-latest
@@ -111,23 +128,24 @@ jobs:
run: sh tests/docker-smoke-test.sh
timeout-minutes: 10
- # TODO: Re-enable security audit job
- # security:
- # name: πŸ”’ Security Audit
- # runs-on: ubuntu-latest
- # continue-on-error: true
- # steps:
- # - name: πŸ›ŽοΈ Checkout Code
- # uses: actions/checkout@v6
- #
- # - name: πŸ”§ Setup Node.js
- # uses: actions/setup-node@v6
- # with:
- # node-version: '20'
- # cache: 'yarn'
- #
- # - name: πŸ“¦ Install Dependencies
- # run: yarn install --frozen-lockfile
- #
- # - name: πŸ”’ Run Security Audit
- # run: yarn audit --level high
+ security:
+ name: πŸ”’ Security Audit
+ runs-on: ubuntu-latest
+ needs: changes
+ if: needs.changes.outputs.lockfile == 'true'
+ continue-on-error: true
+ steps:
+ - name: πŸ›ŽοΈ Checkout Code
+ uses: actions/checkout@v6
+
+ - name: πŸ”§ Setup Node.js
+ uses: actions/setup-node@v6
+ with:
+ node-version: '20'
+ cache: 'yarn'
+
+ - name: πŸ“¦ Install Dependencies
+ run: yarn install --frozen-lockfile
+
+ - name: πŸ”’ Run Security Audit
+ run: yarn audit --level high