Skip to content

Update django.yml (#60) #49

Update django.yml (#60)

Update django.yml (#60) #49

Workflow file for this run

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
## ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
name: CodeQL Analysis
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
schedule:
- cron: '0 0 * * 1' # Wekelijkse analyse op maandag om 00:00 UTC
permissions:
security-events: write
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
steps:

Check failure on line 34 in .github/workflows/codeql.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/codeql.yml

Invalid workflow file

You have an error in your yaml syntax on line 34
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt || echo "No requirements.txt found, skipping..."
pip install django # Zorg ervoor dat Django is geïnstalleerd indien nodig
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
- name: Autobuild
run: |
if [[ "${{ matrix.language }}" == "python" ]]; then
if [ -f "setup.py" ]; then
python setup.py install
elif [ -f "pyproject.toml" ]; then
pip install .
else
echo "No setup.py or pyproject.toml found, skipping build step..."
fi
fi
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
run: |
if [[ "${{ matrix.language }}" == "python" ]]; then
python setup.py install
fi
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
- name: Set up Python
uses: actions/setup-python@v3