Skip to content

Commit aa496ec

Browse files
author
Automatajm
committed
Fix CodeQL workflow - update to v3 and separate Dart analysis
1 parent ba28e13 commit aa496ec

1 file changed

Lines changed: 33 additions & 19 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,44 +20,58 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
language: [ 'javascript', 'dart' ]
23+
language: [ 'javascript' ] # Solo JavaScript por ahora, Dart requiere configuración especial
2424

2525
steps:
2626
- name: Checkout repository
2727
uses: actions/checkout@v4
2828

29-
- name: Setup Flutter/Dart
30-
if: matrix.language == 'dart'
31-
uses: subosito/flutter-action@v2
32-
with:
33-
flutter-version: '3.16.0'
34-
channel: 'stable'
35-
3629
- name: Setup Node.js
37-
if: matrix.language == 'javascript'
3830
uses: actions/setup-node@v4
3931
with:
4032
node-version: '18'
4133

4234
- name: Initialize CodeQL
43-
uses: github/codeql-action/init@v2
35+
uses: github/codeql-action/init@v3
4436
with:
4537
languages: ${{ matrix.language }}
4638
queries: security-extended,security-and-quality
4739

48-
- name: Install Dependencies (Flutter)
49-
if: matrix.language == 'dart'
50-
run: |
51-
cd frontend
52-
flutter pub get
53-
5440
- name: Install Dependencies (Node.js)
55-
if: matrix.language == 'javascript'
5641
run: |
5742
cd backend
58-
npm install
43+
npm install --only=prod
5944
6045
- name: Perform CodeQL Analysis
61-
uses: github/codeql-action/analyze@v2
46+
uses: github/codeql-action/analyze@v3
6247
with:
6348
category: "/language:${{matrix.language}}"
49+
50+
# Análisis separado para Dart usando herramientas específicas
51+
dart-analysis:
52+
name: Dart Security Analysis
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Checkout repository
56+
uses: actions/checkout@v4
57+
58+
- name: Setup Flutter/Dart
59+
uses: subosito/flutter-action@v2
60+
with:
61+
flutter-version: '3.16.0'
62+
channel: 'stable'
63+
64+
- name: Install Dependencies
65+
run: |
66+
cd frontend
67+
flutter pub get
68+
69+
- name: Run Dart Analyzer
70+
run: |
71+
cd frontend
72+
dart analyze --fatal-infos
73+
74+
- name: Run Flutter Security Audit
75+
run: |
76+
cd frontend
77+
flutter pub deps --json | dart pub global run pana

0 commit comments

Comments
 (0)