From 3be8a98a516062c2938efd6dfc737bc02ebcdfd6 Mon Sep 17 00:00:00 2001 From: paul-charnoz-cko Date: Thu, 19 Nov 2026 14:13:59 +0100 Subject: [PATCH 1/2] Remove custom codeql --- .github/workflows/codeql-analysis.yml | 63 --------------------------- 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 89cc9f6..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,63 +0,0 @@ -name: "Run CodeQL" - -on: - push: - branches: - - 'main' - - 'develop' - - 'release/*' - pull_request: - # The branches below must be a subset of the branches above - branches: - - 'main' - - 'develop' - - 'release/*' - schedule: - - cron: '34 2 * * 0' - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - analyze: - name: Analyze - runs-on: [ macos-latest ] - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'swift' ] - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - submodules: recursive - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v3 - with: - languages: ${{ matrix.language }} - queries: security-and-quality - debug: true - - # Build and analyze each scheme separately - - name: Build and analyze CheckoutCardManagement - run: | - xcodebuild -scheme CheckoutCardManagement -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest" - - - name: Build and analyze CheckoutCardManagementStub - run: | - xcodebuild -scheme CheckoutCardManagementStub -destination "platform=iOS Simulator,name=iPhone 14 Pro,OS=latest" - - # Perform analysis on the code - - name: Analyze code with CodeQL - uses: github/codeql-action/analyze@v2 - with: - database: ${{ github.workspace }} From 772b1b1ca6a7615115024dfa6e054c9d1a1730da Mon Sep 17 00:00:00 2001 From: paul-charnoz-cko Date: Thu, 19 Nov 2026 14:56:48 +0100 Subject: [PATCH 2/2] Remove deprecated sonar job --- .github/scripts/run_sonar.sh | 11 ---------- .github/workflows/build.yml | 41 ------------------------------------ 2 files changed, 52 deletions(-) delete mode 100644 .github/scripts/run_sonar.sh delete mode 100644 .github/workflows/build.yml diff --git a/.github/scripts/run_sonar.sh b/.github/scripts/run_sonar.sh deleted file mode 100644 index e144ec7..0000000 --- a/.github/scripts/run_sonar.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -sonar-scanner \ - -Dsonar.organization=checkout-ltd \ - -Dsonar.projectKey=checkout_CheckoutCardManagement-iOS \ - -Dsonar.sources=. \ - -Dsonar.host.url=https://sonarcloud.io \ - -Dsonar.cfamily.build-wrapper-output.bypass=true \ - -Dsonar.c.file.suffixes=- \ - -Dsonar.cpp.file.suffixes=- \ - -Dsonar.objc.file.suffixes=- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ec0124c..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Run SonarCloud Analysis -on: - push: - branches: - - 'main' - - 'develop' - - 'release/*' - pull_request: - # The branches below must be a subset of the branches above - branches: - - 'main' - - 'develop' - - 'release/*' - schedule: - - cron: '34 2 * * 0' - -concurrency: - group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true - -jobs: - build: - name: Build and analyze - runs-on: macos-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - # Initializes the SonarCloud tools for scanning. - - name: Install sonar-scanner and build-wrapper - uses: SonarSource/sonarcloud-github-c-cpp@v2 - - # Executes the SonarScanner to analyze the project. - - name: Run sonar-scanner - env: - # Sets environment variables required for the analysis - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: sh .github/scripts/run_sonar.sh