Skip to content

Commit

Permalink
fix: Update codeql.yml for checks in GH Action (#67)
Browse files Browse the repository at this point in the history
* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update codeql.yml

* Update __init__.py for testing

* Update __init__.py

* Update __init__.py

* Update codeql.yml

* Update codeql.yml

* Update __init__.py

* Update codeql.yml
  • Loading branch information
mgarciaLKS authored Feb 17, 2025
1 parent 988faea commit 2d38940
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,21 @@ name: "CodeQL"
on:
push:
branches: ["main"]
paths:
- "ichub-backend/**/*.py"
- "ichub-frontend/**/*.py"
paths-ignore:
- "**/*.yml"
- "**/*.yaml"
- "**/*.md"
- "**/*.txt"
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
paths:
- "ichub-backend/**/*.py"
- "ichub-frontend/**/*.py"
paths-ignore:
- "**/*.yml"
- "**/*.yaml"
- "**/*.md"
- "**/*.txt"
schedule:
Expand All @@ -45,15 +53,6 @@ jobs:
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ["python"] # Define languages here
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -62,7 +61,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
with:
languages: ${{ matrix.language }}
languages: python
# If you wish to specify custom queries, you can do so here or in a config file
# By default, queries listed here will override any specified in a config file
# Prefix the list here with "+" to use these queries and those in the config file
Expand All @@ -71,12 +70,6 @@ jobs:
# Use +security-extended,security-and-quality for wider security and better code quality
queries: +security-extended,security-and-quality

# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift)
# Automates dependency installation for Python, Ruby, and JavaScript, optimizing the CodeQL analysis setup
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

Expand All @@ -89,5 +82,5 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
with:
category: "/language:${{matrix.language}}"
category: "/language:python"
fail-on: error

0 comments on commit 2d38940

Please sign in to comment.