diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e064a68..d2010bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,3 +96,37 @@ jobs: env: PATH: $PATH:$(pwd)/bin - run: codecov + + analyze: + name: CodeQL Analyze + needs: + - pytest + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ javascript, python ] + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + queries: +security-and-quality + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + if: ${{ matrix.language == 'javascript' || matrix.language == 'python' }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{ matrix.language }}" diff --git a/tests/testapp/views.py b/tests/testapp/views.py index 22835e9..da3b87e 100644 --- a/tests/testapp/views.py +++ b/tests/testapp/views.py @@ -10,7 +10,7 @@ class FileEncoder(DjangoJSONEncoder): def default(self, o): if isinstance(o, File): return o.name - super().default(o) + return super().default(o) class ExampleFormView(generic.FormView):