Skip to content

CodeQL fixes

CodeQL fixes #6699

Workflow file for this run

---
###########################
###########################
## Linter GitHub Actions ##
###########################
###########################
name: Lint Code Base
#
# Documentation:
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
#
#############################
# Start the job on all push #
#############################
on: [ push, pull_request, workflow_dispatch ]
###############
# Set the Job #
###############
jobs:
build:
# Name the Job
name: Lint Code Base
# Set the agent to run on
runs-on: ubuntu-latest
permissions:
contents: read
packages: read
# To report GitHub Actions status checks
statuses: write
##################
# Load all steps #
##################
steps:
##########################
# Checkout the code base #
##########################
- name: Checkout Code
uses: actions/checkout@v2
################################
# Run Linter against code base #
################################
- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_PYTHON: true
VALIDATE_PYTHON_FLAKE8: true
# VALIDATE_PYTHON_PYLINT: false # disable pylint, as we have not configure it
# VALIDATE_PYTHON_BLACK: false # same as above
PYTHON_FLAKE8_CONFIG_FILE: tox.ini
FILTER_REGEX_INCLUDE: azure_functions_worker/.*
FILTER_REGEX_EXCLUDE: tests/.*
DEFAULT_BRANCH: dev
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}