From e40a877669d58d85b67df7fa9beebb64c480e8ec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 18:07:23 +0000 Subject: [PATCH] chore: add swift codeql workflow and fix dependabot Agent-Logs-Url: https://github.com/SillyLittleTech/Flean/sessions/0c143699-654f-4f72-a71f-47df14596945 Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com> --- .github/codeql/codeql-config.yml | 5 +++ .github/dependabot.yml | 4 +- .github/workflows/codeql.yml | 77 ++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 2 deletions(-) create mode 100644 .github/codeql/codeql-config.yml create mode 100644 .github/workflows/codeql.yml diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 0000000..5c3bcdf --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,5 @@ +name: "Flean Swift CodeQL" + +paths: + - ios + - mos diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5990d9c..6867e71 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,7 @@ version: 2 updates: - - package-ecosystem: "" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "github-actions" + directory: "/" schedule: interval: "weekly" diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..1869d08 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,77 @@ +name: CodeQL (Swift) + +on: + push: + branches: + - main + paths: + - '**.swift' + - 'ios/**' + - 'mos/**' + - '.github/workflows/codeql.yml' + - '.github/codeql/**' + pull_request: + branches: + - main + paths: + - '**.swift' + - 'ios/**' + - 'mos/**' + - '.github/workflows/codeql.yml' + - '.github/codeql/**' + schedule: + - cron: '0 8 * * 1' + workflow_dispatch: + +permissions: + contents: read + security-events: write + +jobs: + analyze: + name: Analyze + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: swift + config-file: ./.github/codeql/codeql-config.yml + + # The projects do not contain shared schemes, so build with explicit targets. + - name: Build iOS app for analysis + run: | + cd ios + xcodebuild build \ + -project Flean.xcodeproj \ + -target Flean \ + -configuration Debug \ + -sdk iphonesimulator \ + -skipPackagePluginValidation \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" + + - name: Build macOS app for analysis + run: | + cd mos + xcodebuild build \ + -project Flean.xcodeproj \ + -target Flean \ + -configuration Debug \ + -sdk macosx \ + -skipPackagePluginValidation \ + CODE_SIGNING_ALLOWED=NO \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGN_IDENTITY="" + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: '/language:swift'