Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 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
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'
105 changes: 105 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '27 4 * * 4'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

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
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'rust', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# 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
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

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