Skip to content

Commit

Permalink
Added license-scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Dec 10, 2024
1 parent d4c6690 commit e2ebdc7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ jobs:
multiproject: true
secrets:
nvd-api-key: ${{ secrets.NVD_APIKEY }}

license-scan:
uses: th2-net/.github/.github/workflows/license_check.yml@main
needs: [versions]
with:
version: ${{ needs.versions.outputs.version }}

publish-docker:
name: Build and publish docker image
if: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/dev-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ jobs:
multiproject: true
secrets:
nvd-api-key: ${{ secrets.NVD_APIKEY }}
license-scan:
uses: th2-net/.github/.github/workflows/license_check.yml@main
needs: [ app-version ]
with:
version: ${{ needs.app-version.outputs.version }}
publish-docker:
name: Build docker image
needs:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/dev-release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,12 @@ jobs:
secrets:
nvd-api-key: ${{ secrets.NVD_APIKEY }}

license-scan:
uses: th2-net/.github/.github/workflows/license_check.yml@main
needs: [app-version]
with:
version: ${{ needs.app-version.outputs.version }}-dev

publish-docker:
name: Build and publish docker image
if: |
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Scan licenses and vulnerabilities in java project

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'

jobs:
app-version:
name: Collect app version
uses: th2-net/.github/.github/workflows/compound-prebuild-java-dev-workflow.yml@main
with:
project-path: app
owasp-scan:
uses: th2-net/.github/.github/workflows/owasp-gradle-scan.yml@main
with:
multiproject: true
secrets:
nvd-api-key: ${{ secrets.NVD_APIKEY }}
license-scan:
uses: th2-net/.github/.github/workflows/license_check.yml@main
needs: [ app-version ]
with:
version: ${{ needs.app-version.outputs.version }}

0 comments on commit e2ebdc7

Please sign in to comment.