From 96e1a8221fc1d1473e24868bc90115cb9adb0056 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 28 Apr 2021 14:36:28 -0700 Subject: [PATCH] Create codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 43 +++++++++++++++++++++++++++ 1 file changed, 43 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 000000000..31d0cd118 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,43 @@ +name: "CodeQL" + +on: + push: + branches: [ master ] + tags: [ v* ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ master ] + paths-ignore: [ '**/*.md' ] + schedule: + - cron: '00 14 * * *' # Every morning at 7:00am PDT + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'csharp' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + + - name: Build + shell: pwsh + run: scripts/azurePipelinesBuild.ps1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1