From 05dfbccfd964893ef1cfc58fb3cf9216e99545c1 Mon Sep 17 00:00:00 2001 From: Felipe Date: Sat, 18 May 2024 22:16:27 -0300 Subject: [PATCH 01/10] fork attack added files --- .github/dependabot.yml | 11 +++++ .github/workflows/codeql.yml | 93 ++++++++++++++++++++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..041c3e3a --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,11 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + insecure-external-code-execution: allow + pull-request-branch-name: + # Separate sections of the branch name with a hyphen + # for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1` + separator: "-" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..05218b1d --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,93 @@ +# 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" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + schedule: + - cron: '26 9 * * 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' }} + timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} + 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: python + build-mode: none + # CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', '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 + + # 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}}" \ No newline at end of file From 38157da876565a5f7bb510d438f2c81ea91ac6c8 Mon Sep 17 00:00:00 2001 From: fcas Date: Fri, 24 Oct 2025 21:34:39 +0200 Subject: [PATCH 02/10] fork attack added files --- .github/workflows/semgrep.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/semgrep.yml diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml new file mode 100644 index 00000000..305a4218 --- /dev/null +++ b/.github/workflows/semgrep.yml @@ -0,0 +1,26 @@ +on: + workflow_dispatch: {} + pull_request: {} + push: + branches: + - main + - master + paths: + - .github/workflows/semgrep.yml + schedule: + # random HH:MM to avoid a load spike on GitHub Actions at 00:00 + - cron: 2 22 * * * +name: Semgrep +jobs: + semgrep: + name: semgrep/ci + runs-on: ubuntu-latest + permissions: + contents: read + env: + SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} + container: + image: semgrep/semgrep + steps: + - uses: actions/checkout@v4 + - run: semgrep ci \ No newline at end of file From fc002efc4aca2f4e19fafebfe1400f76c7e95ea4 Mon Sep 17 00:00:00 2001 From: Felipe Date: Fri, 14 Aug 2026 11:46:42 -0300 Subject: [PATCH 03/10] chore: trigger CI re-run From 63674ca2d18c17e5028dfaedfca6e83605defb8e Mon Sep 17 00:00:00 2001 From: Felipe Date: Fri, 14 Aug 2026 13:34:02 -0300 Subject: [PATCH 04/10] fix: remove hardcoded branch trigger from CodeQL workflow --- .github/workflows/codeql.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 05218b1d..67c03621 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,9 +13,7 @@ name: "CodeQL" on: push: - branches: [ "master" ] pull_request: - branches: [ "master" ] schedule: - cron: '26 9 * * 4' From 786692b7c4e9cde2170bd542b7d7ebc628960a51 Mon Sep 17 00:00:00 2001 From: Felipe Date: Fri, 14 Aug 2026 13:34:03 -0300 Subject: [PATCH 05/10] fix: remove invalid insecure-external-code-execution key from dependabot.yml --- .github/dependabot.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 041c3e3a..9b750b41 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,7 +2,6 @@ version: 2 updates: - package-ecosystem: "pip" directory: "/" - insecure-external-code-execution: allow pull-request-branch-name: # Separate sections of the branch name with a hyphen # for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1` From 9fa63b51b901e43355a8115154665d04b0af23a3 Mon Sep 17 00:00:00 2001 From: fcas Date: Sat, 15 Aug 2026 01:14:33 +0200 Subject: [PATCH 06/10] ci: set CodeQL threat-models to [remote, local] for broader taint sources --- .github/workflows/codeql.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 67c03621..1a6201b8 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -62,6 +62,8 @@ jobs: with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} + config: | + threat-models: [remote, local] # 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. From b9924af3a7ee45867569663a935e463da82d9f9d Mon Sep 17 00:00:00 2001 From: fcas Date: Sat, 15 Aug 2026 12:31:55 +0200 Subject: [PATCH 07/10] ci: run CodeQL daily instead of weekly --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1a6201b8..65e57390 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -15,7 +15,7 @@ on: push: pull_request: schedule: - - cron: '26 9 * * 4' + - cron: '26 9 * * *' jobs: analyze: From a228679aaf8ab465206221323f071eb2aed8db32 Mon Sep 17 00:00:00 2001 From: fcas Date: Sat, 15 Aug 2026 14:54:30 +0200 Subject: [PATCH 08/10] ci: pin Dependabot to the default branch explicitly and schedule via cron to trigger an update job soon --- .github/dependabot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9b750b41..03c04666 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,9 +2,9 @@ version: 2 updates: - package-ecosystem: "pip" directory: "/" + target-branch: "master" pull-request-branch-name: - # Separate sections of the branch name with a hyphen - # for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1` separator: "-" schedule: - interval: "daily" \ No newline at end of file + interval: "cron" + cron: "1 13 * * *" From bd5471bf46d0f438e86f42fce2afcbbf4bf2222b Mon Sep 17 00:00:00 2001 From: fcas Date: Sat, 15 Aug 2026 16:40:49 +0200 Subject: [PATCH 09/10] chore: re-trigger Dependabot custom-cron scheduling (50 14 * * * UTC), prior 1 13 * * * run never provisioned Co-Authored-By: Claude AI-Assisted: yes AI-Tool: claude-code --- .github/dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 03c04666..aeed4a6c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,4 +7,4 @@ updates: separator: "-" schedule: interval: "cron" - cron: "1 13 * * *" + cron: "50 14 * * *" From 9ed97984ca5bd06662c49d392ab0d0232335f029 Mon Sep 17 00:00:00 2001 From: fcas Date: Sat, 15 Aug 2026 16:58:02 +0200 Subject: [PATCH 10/10] chore: revert Dependabot schedule to daily now that provisioning succeeded (vulnerability-alerts toggle / cron re-trigger) Co-Authored-By: Claude AI-Assisted: yes AI-Tool: claude-code --- .github/dependabot.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index aeed4a6c..0c868c9b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -6,5 +6,4 @@ updates: pull-request-branch-name: separator: "-" schedule: - interval: "cron" - cron: "50 14 * * *" + interval: "daily"