From d00107b53f95fadb98e9b1b5e201cda4e999aba4 Mon Sep 17 00:00:00 2001 From: Bartosz Polaczyk Date: Fri, 4 Aug 2023 12:17:29 +0200 Subject: [PATCH 1/2] Add codeQL analysis --- .github/workflows/code_ql.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/code_ql.yaml diff --git a/.github/workflows/code_ql.yaml b/.github/workflows/code_ql.yaml new file mode 100644 index 00000000..4e0b72f7 --- /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-linux: + name: Run CodeQL on Linux + runs-on: ubuntu-latest + 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 From 827aa6733b29769bd63ed5d7289412119433c622 Mon Sep 17 00:00:00 2001 From: Bartosz Polaczyk Date: Fri, 4 Aug 2023 12:25:00 +0200 Subject: [PATCH 2/2] Use macos --- .github/workflows/ci.yaml | 2 +- .github/workflows/code_ql.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 index 4e0b72f7..c8a2c01f 100644 --- a/.github/workflows/code_ql.yaml +++ b/.github/workflows/code_ql.yaml @@ -7,9 +7,9 @@ on: branches: [ "master" ] jobs: - run-codeql-linux: - name: Run CodeQL on Linux - runs-on: ubuntu-latest + run-codeql-macos: + name: Run CodeQL on MacOS + runs-on: macos-12 permissions: security-events: write