Skip to content

Commit 2d38940

Browse files
authored
fix: Update codeql.yml for checks in GH Action (#67)
* 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
1 parent 988faea commit 2d38940

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

.github/workflows/codeql.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,21 @@ name: "CodeQL"
2222
on:
2323
push:
2424
branches: ["main"]
25+
paths:
26+
- "ichub-backend/**/*.py"
27+
- "ichub-frontend/**/*.py"
2528
paths-ignore:
29+
- "**/*.yml"
30+
- "**/*.yaml"
2631
- "**/*.md"
2732
- "**/*.txt"
2833
pull_request:
29-
# The branches below must be a subset of the branches above
30-
branches: ["main"]
34+
paths:
35+
- "ichub-backend/**/*.py"
36+
- "ichub-frontend/**/*.py"
3137
paths-ignore:
38+
- "**/*.yml"
39+
- "**/*.yaml"
3240
- "**/*.md"
3341
- "**/*.txt"
3442
schedule:
@@ -45,15 +53,6 @@ jobs:
4553
contents: read
4654
security-events: write
4755

48-
strategy:
49-
fail-fast: false
50-
matrix:
51-
language: ["python"] # Define languages here
52-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
53-
# Use only 'java' to analyze code written in Java, Kotlin or both
54-
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
55-
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
56-
5756
steps:
5857
- name: Checkout repository
5958
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -62,7 +61,7 @@ jobs:
6261
- name: Initialize CodeQL
6362
uses: github/codeql-action/init@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
6463
with:
65-
languages: ${{ matrix.language }}
64+
languages: python
6665
# If you wish to specify custom queries, you can do so here or in a config file
6766
# By default, queries listed here will override any specified in a config file
6867
# Prefix the list here with "+" to use these queries and those in the config file
@@ -71,12 +70,6 @@ jobs:
7170
# Use +security-extended,security-and-quality for wider security and better code quality
7271
queries: +security-extended,security-and-quality
7372

74-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift)
75-
# Automates dependency installation for Python, Ruby, and JavaScript, optimizing the CodeQL analysis setup
76-
# If this step fails, then you should remove it and run the build manually (see below)
77-
- name: Autobuild
78-
uses: github/codeql-action/autobuild@9e8d0789d4a0fa9ceb6b1738f7e269594bdd67f0 # v3.28.9
79-
8073
# ℹ️ Command-line programs to run using the OS shell.
8174
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
8275

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

0 commit comments

Comments
 (0)