diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5815bed6..6c277362 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,6 @@ name: CI -on: [pull_request] +on: [] jobs: SwiftLint: diff --git a/.github/workflows/code_ql.yaml b/.github/workflows/code_ql.yaml new file mode 100644 index 00000000..c8a2c01f --- /dev/null +++ b/.github/workflows/code_ql.yaml @@ -0,0 +1,29 @@ +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + run-codeql-macos: + name: Run CodeQL on MacOS + runs-on: macos-12 + permissions: + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: swift + + - name: Build + run: swift build + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 \ No newline at end of file