diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b44c2ba..fd24e97 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -30,12 +30,25 @@ jobs: steps: - name: Checkout 🛎️ uses: actions/checkout@v3 - + + - name: Setup Python 3.8 🐍 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + cache: 'pip' + + - name: Install dependencies 📥 + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV + - name: Initialize CodeQL 🧑‍💻 uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} queries: security-and-quality + setup-python-dependencies: false - name: Perform CodeQL Analysis 📈 uses: github/codeql-action/analyze@v2