From e0a40e178aa27eea5a74427ab2f37d8fde082166 Mon Sep 17 00:00:00 2001 From: Tobias Barth Date: Thu, 19 Nov 2026 12:23:16 +0100 Subject: [PATCH] ci(workflows): remove the CodeQL analysis The repository is to become internal, where code scanning needs a GitHub Code Security licence. Ox Security and SonarCloud already scan this repository, so the CodeQL job and its reusable workflow go. Refs: TSSDK-84 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/_codeql.yml | 73 ---------------------------------- .github/workflows/actions.lock | 9 ----- .github/workflows/ci-cd.yml | 7 ---- 3 files changed, 89 deletions(-) delete mode 100644 .github/workflows/_codeql.yml diff --git a/.github/workflows/_codeql.yml b/.github/workflows/_codeql.yml deleted file mode 100644 index e84090c..0000000 --- a/.github/workflows/_codeql.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: 'CodeQL Analysis' - -on: - workflow_call: - # No inputs needed at this time - -permissions: {} - -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) - runs-on: 'ubuntu-latest' - permissions: - contents: read - security-events: write # github/codeql-action/analyze uploads SARIF - - strategy: - fail-fast: false - matrix: - include: - - language: actions - build-mode: none - - language: javascript-typescript - build-mode: none - steps: - - name: Checkout repository - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - persist-credentials: false - - # 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 - - - if: matrix.language == 'javascript-typescript' - name: Setup Node.js - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 - with: - node-version-file: '.node-version' - cache: 'npm' - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 - with: - languages: javascript-typescript,actions - build-mode: none - # 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 - - # For languages that support build scanning, you can specify any build command you - # want to run before the scan, and can configure the location of your project with - # the location. - # See - # https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages - # for more details on the languages that support build scanning. - # build-mode: ${{ matrix.build-mode }} - # location: ${{ matrix.location }} - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # v4.39.3 - with: - category: '/language:${{ matrix.language }}' diff --git a/.github/workflows/actions.lock b/.github/workflows/actions.lock index 5e739ef..9570b09 100644 --- a/.github/workflows/actions.lock +++ b/.github/workflows/actions.lock @@ -3,10 +3,6 @@ # Docs: https://gh.io/actions-lockfile version: 'v0.0.3' workflows: - '.github/workflows/_codeql.yml': - - 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1' - - 'actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1' - - 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066' '.github/workflows/_report-to-ketryx.yml': - 'actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333' - 'ketryx/ketryx-github-action@e7ad6ff71022a4e8158477c4458778bf4d93353b' @@ -49,11 +45,6 @@ dependencies: commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9' owner_id: 44036562 repo_id: 192625955 - 'github/codeql-action@33d7b85da1a04171e211befe2c739303b9a4c066': - ref: 'v4.39.3' - commit: 'sha1-33d7b85da1a04171e211befe2c739303b9a4c066' - owner_id: 9919 - repo_id: 259445878 'googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7': ref: 'v5.0.0' commit: 'sha1-45996ed1f6d02564a971a2fa1b5860e934307cf7' diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 01290bb..07b5a2c 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -101,10 +101,3 @@ jobs: build-name: 'pre-release' secrets: KETRYX_API_KEY: ${{ secrets.KETRYX_API_KEY }} - - codeql: - if: (!contains(github.event.head_commit.message, 'skip:ci')) - uses: $/.github/workflows/_codeql.yml - permissions: - contents: read - security-events: write # github/codeql-action/analyze uploads SARIF