Skip to content

Commit 981c9ea

Browse files
authored
Creado codeql.yml
1 parent 5100352 commit 981c9ea

1 file changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
pull_request:
18+
branches: [ "main" ]
19+
schedule:
20+
- cron: '0 7 * * 1' # Se ejecuta todos los lunes a las 9:00 de la mañana
21+
22+
jobs:
23+
analyze:
24+
name: Análisis (${{ matrix.language }})
25+
runs-on: "ubuntu-latest"
26+
permissions:
27+
security-events: write
28+
contents: read
29+
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
include:
34+
- language: actions
35+
build-mode: none
36+
- language: javascript
37+
build-mode: none
38+
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
39+
# Use `c-cpp` to analyze code written in C, C++ or both
40+
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
41+
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
42+
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
43+
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
44+
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
45+
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
46+
47+
steps:
48+
- name: Checkout del repositorio
49+
uses: actions/checkout@v4
50+
51+
- name: Inicializar CodeQL
52+
uses: github/codeql-action/init@v3
53+
with:
54+
languages: ${{ matrix.language }}
55+
build-mode: ${{ matrix.build-mode }}
56+
57+
- name: Ejecutar análisis CodeQL
58+
uses: github/codeql-action/analyze@v3
59+
with:
60+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)