Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
3d6b327
Bump jinja2 from 2.11.3 to 3.1.6 in /scripts
dependabot[bot] Aug 5, 2025
7cc4838
Bump idna from 3.4 to 3.7 in /scripts/upgrade-codeql-dependencies
dependabot[bot] Aug 5, 2025
1e9f9f8
Merge pull request #3 from AndresMaqueo/dependabot/pip/scripts/upgrad…
AndresMaqueo Aug 9, 2025
7c01dae
Bump certifi from 2023.7.22 to 2024.7.4 in /scripts
dependabot[bot] Aug 9, 2025
9d10a4c
Bump urllib3 in /scripts/upgrade-codeql-dependencies
dependabot[bot] Aug 9, 2025
dd3387a
Bump requests from 2.31.0 to 2.32.4 in /scripts
dependabot[bot] Aug 9, 2025
70aa936
Merge branch 'main' into main
AndresMaqueo Aug 9, 2025
839d2dc
Merge pull request #5 from AndresMaqueo/dependabot/pip/scripts/upgrad…
AndresMaqueo Aug 10, 2025
9278cdf
Merge pull request #4 from AndresMaqueo/dependabot/pip/scripts/reques…
AndresMaqueo Aug 10, 2025
f876d22
Merge pull request #2 from AndresMaqueo/dependabot/pip/scripts/jinja2…
AndresMaqueo Aug 10, 2025
8db576f
Merge pull request #1 from AndresMaqueo/dependabot/pip/scripts/certif…
AndresMaqueo Aug 10, 2025
6e60f68
Add CodeQL analysis workflow configuration
AndresMaqueo Sep 15, 2025
2a133d5
Potential fix for code scanning alert no. 25: Workflow does not conta…
AndresMaqueo Sep 15, 2025
9de4c5a
Merge pull request #15 from AndresMaqueo/alert-autofix-25
AndresMaqueo Sep 15, 2025
57031bd
Merge branch 'github:main' into main
AndresMaqueo Sep 16, 2025
83d6018
ci: use ubuntu-22.04 instead of ubuntu-latest-xl to avoid queueing
AndresMaqueo Sep 18, 2025
7c7726f
chore: bootstrap branch (#17)
AndresMaqueo Sep 18, 2025
2dd4119
fix(ci): optimize CodeQL workflow (timeout, cache, multiproceso)
AndresMaqueo Nov 5, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/code-scanning-pack-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
create-code-scanning-pack:
name: Create Code Scanning pack
needs: prepare-code-scanning-pack-matrix
runs-on: ubuntu-latest-xl
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix: ${{ fromJSON(needs.prepare-code-scanning-pack-matrix.outputs.matrix) }}
Expand Down Expand Up @@ -133,4 +133,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: coding-standards-codeql-packs
path: '*-coding-standards.tgz'
path: '*-coding-standards.tgz'
72 changes: 72 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: "CodeQL Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '27 4 * * 4' # análisis semanal automático

permissions:
contents: read
security-events: write
actions: read
packages: read

jobs:
analyze:
name: Analizar (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: 30 # ⏱️ aumenta tiempo máximo
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: c-cpp
build-mode: none
- language: javascript-typescript
build-mode: none
- language: python
build-mode: none

steps:
- name: 🧰 Checkout del repositorio
uses: actions/checkout@v4

- name: ⚡ Configurar caché de CodeQL
uses: actions/cache@v4
with:
path: ~/.codeql-cache
key: ${{ runner.os }}-codeql-${{ matrix.language }}
restore-keys: |
${{ runner.os }}-codeql-

- name: 🧩 Inicializar CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: +security-extended,security-and-quality

- name: 🚀 Analizar con CodeQL
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
output: results-${{ matrix.language }}.sarif

- name: 📦 Generar paquete de consultas CodeQL
run: |
echo "Creando paquete para ${{ matrix.language }}..."
codeql pack create --threads=4 --timeout=900 || echo "⚠️ Error leve, continuará..."
echo "Verificando integridad del paquete..."
codeql pack verify || echo "⚠️ Verificación incompleta."

- name: ☁️ Subir artefacto SARIF
uses: actions/upload-artifact@v4
with:
name: codeql-results-${{ matrix.language }}
path: results-${{ matrix.language }}.sarif

3 changes: 2 additions & 1 deletion .github/workflows/codeql_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
python scripts/create_language_matrix.py
echo "matrix=$(
python scripts/create_language_matrix.py | \
jq --compact-output 'map([.+{os: "ubuntu-latest-xl", codeql_standard_library_ident : .codeql_standard_library | sub("\/"; "_")}]) | flatten | {include: .}')" >> $GITHUB_OUTPUT
jq --compact-output 'map([.+{os: "ubuntu-22.04", codeql_standard_library_ident : .codeql_standard_library | sub("\/"; "_")}]) | flatten | {include: .}')" >> $GITHUB_OUTPUT

run-test-suites:
name: Run unit tests
Expand Down Expand Up @@ -185,3 +185,4 @@ jobs:
echo $FAILING_TESTS | jq .
exit 1
fi

2 changes: 2 additions & 0 deletions .github/workflows/verify-standard-library-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Verify Standard Library Dependencies
permissions:
contents: read

# Run this workflow every time the "supported_codeql_configs.json" file or a "qlpack.yml" file is changed
on:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ All header files in [c/common/test/includes/standard-library](./c/common/test/in
<sup>1</sup>This repository incorporates portions of the SEI CERT® Coding Standards available at https://wiki.sei.cmu.edu/confluence/display/seccode/SEI+CERT+Coding+Standards; however, such use does not necessarily constitute or imply an endorsement, recommendation, or favoring by Carnegie Mellon University or its Software Engineering Institute.



10 changes: 5 additions & 5 deletions scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
beautifulsoup4==4.9.3
certifi==2023.7.22
certifi==2024.7.4
chardet==3.0.4
gitdb==4.0.5
GitPython==3.1.41
idna==2.10
Jinja2==2.11.3
MarkupSafe==1.1.1
requests==2.31.0
Jinja2==3.1.6
MarkupSafe==2.1.5
requests==2.32.4
smmap==3.0.5
soupsieve==2.0.1
pyyaml==6.0.1
urllib3==1.26.18
wheel==0.38.1
jsonschema==4.9.1
marko==1.2.1
marko==1.2.1
8 changes: 4 additions & 4 deletions scripts/upgrade-codeql-dependencies/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
certifi==2023.7.22
certifi==2024.7.4
charset-normalizer==3.2.0
idna==3.4
requests==2.31.0
idna==3.7
requests==2.32.4
semantic-version==2.10.0
urllib3==1.26.18
urllib3==2.5.0
pyyaml==6.0.1