Skip to content

Commit da3ba44

Browse files
authored
Merge pull request #380 from k4cg/codeql_widened
widened codeql checks
2 parents 619529e + c1b43c1 commit da3ba44

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

.github/codeql/python-package.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ queries:
77
- uses: security-and-quality
88

99
paths:
10-
- python-package/bin
11-
- python-package/src
10+
- python-package
1211
paths-ignore:
13-
# web-ui is generated
14-
- python-package/src/nichtparasoup/_web-ui
12+
- python-package/tests
13+
# parts of web-ui are generated
14+
- python-package/src/nichtparasoup/_web-ui/static

.github/codeql/python-plugin-example.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ queries:
77
- uses: security-and-quality
88

99
paths:
10-
- python-plugin-example/src
10+
- python-plugin-example
11+
paths-ignore:
12+
- python-plugin-example/tests

.github/codeql/web-ui.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ queries:
77
- uses: security-and-quality
88

99
paths:
10-
- web-ui/src
10+
- web-ui
1111
paths-ignore:
1212
- web-ui/node_modules
1313
- 'web-ui/**/*.test.js'

.github/workflows/python-package-tests.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- '3.0-dev'
1414
paths:
1515
- '.github/workflows/python-package-tests.yaml'
16+
- '.github/codeql/python-package.yaml'
1617
- 'python-package/**'
1718
- '!python-package/src/nichtparasoup/_web-ui/static/**'
1819
- '!python-package/docs/**'
@@ -29,6 +30,7 @@ on:
2930
- '3.0-dev'
3031
paths:
3132
- '.github/workflows/python-package-tests.yaml'
33+
- '.github/codeql/python-package.yaml'
3234
- 'python-package/**'
3335
- '!python-package/src/nichtparasoup/_web-ui/static/**'
3436
- '!python-package/docs/**'
@@ -136,7 +138,6 @@ jobs:
136138
- name: Tidy pip cache dir
137139
if: ${{ always() }}
138140
run: python -m pip cache remove 'nichtparasoup*' || true
139-
140141
test-reporting_merge:
141142
name: Merge test reports
142143
needs: ['test']
@@ -185,7 +186,6 @@ jobs:
185186
name: ${{ env.reports-directory }}
186187
path: ${{ env.project-directory }}/${{ env.reports-directory }}/
187188
if-no-files-found: error
188-
189189
codecov:
190190
name: CodeCov
191191
# have forks backed-up: Anyone without write access to a repository cannot read and use secrets
@@ -210,7 +210,6 @@ jobs:
210210
file: ${{ env.project-directory }}/${{ env.reports-directory }}/coverage.xml
211211
flags: ${{ env.project-directory }}
212212
name: ${{ env.project-directory }}
213-
214213
sonarcloud:
215214
name: SonarScanner
216215
# have forks backed-up: Anyone without write access to a repository cannot read and use secrets
@@ -239,7 +238,6 @@ jobs:
239238
env:
240239
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
241240
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
242-
243241
codeql:
244242
# see https://github.com/github/codeql-action
245243
name: CodeQL
@@ -261,7 +259,7 @@ jobs:
261259
uses: github/codeql-action/init@v1
262260
with:
263261
languages: python
264-
config-file: ./.github/codeql/${{ env.project-directory }}.yaml
262+
config-file: .github/codeql/${{ env.project-directory }}.yaml
265263
- name: Perform CodeQL Analysis
266264
# see https://github.com/github/codeql-action
267265
uses: github/codeql-action/analyze@v1

.github/workflows/python-plugin-example-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- '3.0-dev'
1111
paths:
1212
- '.github/workflows/python-plugin-example-tests.yaml'
13+
- '.github/codeql/python-plugin-example.yaml'
1314
- 'python-plugin-example/**'
1415
- '!python-plugin-example/docs/**'
1516
- '!python-plugin-example/**.md'
@@ -22,6 +23,7 @@ on:
2223
- '3.0-dev'
2324
paths:
2425
- '.github/workflows/python-plugin-example-tests.yaml'
26+
- '.github/codeql/python-plugin-example.yaml'
2527
- 'python-plugin-example/**'
2628
- '!python-plugin-example/docs/**'
2729
- '!python-plugin-example/**.md'
@@ -246,7 +248,7 @@ jobs:
246248
uses: github/codeql-action/init@v1
247249
with:
248250
languages: python
249-
config-file: ./.github/codeql/${{ env.project-directory }}.yaml
251+
config-file: .github/codeql/${{ env.project-directory }}.yaml
250252
- name: Perform CodeQL Analysis
251253
# see https://github.com/github/codeql-action
252254
uses: github/codeql-action/analyze@v1

.github/workflows/web-ui-tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- '3.0-dev'
1111
paths:
1212
- '.github/workflows/web-ui-tests.yaml'
13+
- '.github/codeql/web-ui.yaml'
1314
- 'web-ui/**'
1415
- '!web-ui/docs/**'
1516
- '!web-ui/**.md'
@@ -21,6 +22,7 @@ on:
2122
- '3.0-dev'
2223
paths:
2324
- '.github/workflows/web-ui-tests.yaml'
25+
- '.github/codeql/web-ui.yaml'
2426
- 'web-ui/**'
2527
- '!web-ui/docs/**'
2628
- '!web-ui/**.md'
@@ -76,7 +78,7 @@ jobs:
7678
uses: github/codeql-action/init@v1
7779
with:
7880
languages: javascript
79-
config-file: ./.github/codeql/${{ env.project-directory }}.yaml
81+
config-file: .github/codeql/${{ env.project-directory }}.yaml
8082
- name: Perform CodeQL Analysis
8183
# see https://github.com/github/codeql-action
8284
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)