Skip to content

Commit f87d34e

Browse files
committed
ci: add CodeQL workflow for automated code analysis
1 parent cfa38ae commit f87d34e

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '30 1 * * 1' # Se ejecuta los lunes a la 1:30 AM
10+
11+
jobs:
12+
analyze:
13+
name: Analyze
14+
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
19+
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Initialize CodeQL
25+
uses: github/codeql-action/init@v3
26+
with:
27+
languages: 'javascript-typescript'
28+
29+
- name: Manual Build
30+
run: |
31+
npm install
32+
33+
- name: Perform CodeQL Analysis
34+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)