From 0e487ff98dbe902dbe7516ff3a1e8d71c0c192f5 Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 27 Jul 2022 16:11:38 -0700 Subject: [PATCH] ci: add codeql workflow (#74) * Do security scan against JavaScript files --- .github/workflows/codeql.yml | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000000..5949989c64 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,37 @@ +name: 'CodeQL' + +on: + pull_request: + branches: + - develop + push: + branches: + - develop + tags: + - v* + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ['javascript'] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2