From d578767c31e57571da41b1420f2ecce7c565530d Mon Sep 17 00:00:00 2001 From: Aravind Nair <22199259+aravindvnair99@users.noreply.github.com> Date: Sat, 11 Mar 2023 23:00:45 +0530 Subject: [PATCH] Update codeql.yml --- .github/workflows/codeql.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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