From 808202db15b0dfe87d09e05c0dcf97c95e19190b Mon Sep 17 00:00:00 2001 From: Aashna Narula Date: Tue, 20 Feb 2024 12:58:59 +0000 Subject: [PATCH] Test CodeQL --- .github/workflows/codeql-analysis.yml | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..1d93d7c --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,51 @@ +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: [ 'ruby' ] + + 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 + + - name: Run CodeQL + uses: cko-core-engineering/actions/codeql-analysis-autobuild@v5