Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

Add CodeQL analysis workflow for C/C++ and Swift

AnoF-Cyber3dbc3f386f11
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000..41d4a36
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,70 @@
+name: "CodeQL"
+
+on:
+ push:
+ branches: [ "master", "dev" ]
+ pull_request:
+ branches: [ "master", "dev" ]
+ schedule:
+ - cron: '0 4 * * 1'
+
+jobs:
+
+ analyze-c-csharp:
+ name: Analyze (${{ matrix.language }})
+ runs-on: windows-latest
+ permissions:
+ security-events: write
+
+ strategy:
+ matrix:
+ language: [ 'c-cpp', 'csharp' ]
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v3
+ with:
+ languages: ${{ matrix.language }}
+
+ - name: Autobuild
+ uses: github/codeql-action/autobuild@v3
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v3
+ with:
+ category: "/language:${{ matrix.language }}"
+
+ analyze-swift:
+ name: Analyze (swift)
+ runs-on: macos-latest
+ permissions:
+ security-events: write
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Initialize CodeQL
+ uses: github/codeql-action/init@v3
+ with:
+ languages: swift
+
+ - name: Build (no signing)
+ working-directory: MacOS/ProxyBridge
+ run: |
+ xcodebuild \
+ -project ProxyBridge.xcodeproj \
+ -scheme ProxyBridge \
+ -destination 'generic/platform=macOS' \
+ CODE_SIGNING_ALLOWED=NO \
+ CODE_SIGN_IDENTITY="" \
+ DEVELOPMENT_TEAM="" \
+ clean build
+
+ - name: Perform CodeQL Analysis
+ uses: github/codeql-action/analyze@v3
+ with:
+ category: "/language:swift"