Skip to content

Commit

Permalink
Merge pull request #380 from k4cg/codeql_widened
Browse files Browse the repository at this point in the history
widened codeql checks
  • Loading branch information
jkowalleck committed Sep 5, 2020
2 parents 619529e + c1b43c1 commit da3ba44
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/codeql/python-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ queries:
- uses: security-and-quality

paths:
- python-package/bin
- python-package/src
- python-package
paths-ignore:
# web-ui is generated
- python-package/src/nichtparasoup/_web-ui
- python-package/tests
# parts of web-ui are generated
- python-package/src/nichtparasoup/_web-ui/static
4 changes: 3 additions & 1 deletion .github/codeql/python-plugin-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ queries:
- uses: security-and-quality

paths:
- python-plugin-example/src
- python-plugin-example
paths-ignore:
- python-plugin-example/tests
2 changes: 1 addition & 1 deletion .github/codeql/web-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ queries:
- uses: security-and-quality

paths:
- web-ui/src
- web-ui
paths-ignore:
- web-ui/node_modules
- 'web-ui/**/*.test.js'
8 changes: 3 additions & 5 deletions .github/workflows/python-package-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- '3.0-dev'
paths:
- '.github/workflows/python-package-tests.yaml'
- '.github/codeql/python-package.yaml'
- 'python-package/**'
- '!python-package/src/nichtparasoup/_web-ui/static/**'
- '!python-package/docs/**'
Expand All @@ -29,6 +30,7 @@ on:
- '3.0-dev'
paths:
- '.github/workflows/python-package-tests.yaml'
- '.github/codeql/python-package.yaml'
- 'python-package/**'
- '!python-package/src/nichtparasoup/_web-ui/static/**'
- '!python-package/docs/**'
Expand Down Expand Up @@ -136,7 +138,6 @@ jobs:
- name: Tidy pip cache dir
if: ${{ always() }}
run: python -m pip cache remove 'nichtparasoup*' || true

test-reporting_merge:
name: Merge test reports
needs: ['test']
Expand Down Expand Up @@ -185,7 +186,6 @@ jobs:
name: ${{ env.reports-directory }}
path: ${{ env.project-directory }}/${{ env.reports-directory }}/
if-no-files-found: error

codecov:
name: CodeCov
# have forks backed-up: Anyone without write access to a repository cannot read and use secrets
Expand All @@ -210,7 +210,6 @@ jobs:
file: ${{ env.project-directory }}/${{ env.reports-directory }}/coverage.xml
flags: ${{ env.project-directory }}
name: ${{ env.project-directory }}

sonarcloud:
name: SonarScanner
# have forks backed-up: Anyone without write access to a repository cannot read and use secrets
Expand Down Expand Up @@ -239,7 +238,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

codeql:
# see https://github.com/github/codeql-action
name: CodeQL
Expand All @@ -261,7 +259,7 @@ jobs:
uses: github/codeql-action/init@v1
with:
languages: python
config-file: ./.github/codeql/${{ env.project-directory }}.yaml
config-file: .github/codeql/${{ env.project-directory }}.yaml
- name: Perform CodeQL Analysis
# see https://github.com/github/codeql-action
uses: github/codeql-action/analyze@v1
4 changes: 3 additions & 1 deletion .github/workflows/python-plugin-example-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- '3.0-dev'
paths:
- '.github/workflows/python-plugin-example-tests.yaml'
- '.github/codeql/python-plugin-example.yaml'
- 'python-plugin-example/**'
- '!python-plugin-example/docs/**'
- '!python-plugin-example/**.md'
Expand All @@ -22,6 +23,7 @@ on:
- '3.0-dev'
paths:
- '.github/workflows/python-plugin-example-tests.yaml'
- '.github/codeql/python-plugin-example.yaml'
- 'python-plugin-example/**'
- '!python-plugin-example/docs/**'
- '!python-plugin-example/**.md'
Expand Down Expand Up @@ -246,7 +248,7 @@ jobs:
uses: github/codeql-action/init@v1
with:
languages: python
config-file: ./.github/codeql/${{ env.project-directory }}.yaml
config-file: .github/codeql/${{ env.project-directory }}.yaml
- name: Perform CodeQL Analysis
# see https://github.com/github/codeql-action
uses: github/codeql-action/analyze@v1
4 changes: 3 additions & 1 deletion .github/workflows/web-ui-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- '3.0-dev'
paths:
- '.github/workflows/web-ui-tests.yaml'
- '.github/codeql/web-ui.yaml'
- 'web-ui/**'
- '!web-ui/docs/**'
- '!web-ui/**.md'
Expand All @@ -21,6 +22,7 @@ on:
- '3.0-dev'
paths:
- '.github/workflows/web-ui-tests.yaml'
- '.github/codeql/web-ui.yaml'
- 'web-ui/**'
- '!web-ui/docs/**'
- '!web-ui/**.md'
Expand Down Expand Up @@ -76,7 +78,7 @@ jobs:
uses: github/codeql-action/init@v1
with:
languages: javascript
config-file: ./.github/codeql/${{ env.project-directory }}.yaml
config-file: .github/codeql/${{ env.project-directory }}.yaml
- name: Perform CodeQL Analysis
# see https://github.com/github/codeql-action
uses: github/codeql-action/analyze@v1

0 comments on commit da3ba44

Please sign in to comment.