Update code analysis workflow to improve clarity and efficiency by renaming steps and simplifying Semgrep command execution.
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Has been cancelled
Some checks failed
Code Analysis (JS/Vue) / analyze (push) Has been cancelled
This commit is contained in:
@@ -12,29 +12,22 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Show versions
|
||||
- name: Node versions
|
||||
run: |
|
||||
node -v || true
|
||||
npm -v || true
|
||||
node -v
|
||||
npm -v
|
||||
|
||||
# Install
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
# 1) Linting / Code-Qualität
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
# Tests (optional aber sehr sinnvoll)
|
||||
- name: Unit tests
|
||||
run: npm test
|
||||
|
||||
# Optional: Build check (Vue/Vite/Nuxt)
|
||||
- name: Build
|
||||
run: npm run build --if-present
|
||||
|
||||
# 2) SAST / Security: Semgrep (ohne Docker, via pip)
|
||||
- name: Semgrep (SAST)
|
||||
run: |
|
||||
python3 -m pip install --user --upgrade pip semgrep
|
||||
~/.local/bin/semgrep --config p/default --error
|
||||
run: semgrep --config p/default --error .
|
||||
|
||||
Reference in New Issue
Block a user