add security cron job #1189
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Configuration Server Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
paths: | |
- '.github/workflows/configurationserver_test.yml' | |
- 'components/inspectit-ocelot-configurationserver/**' | |
- 'gradle.properties' | |
- '!components/inspectit-ocelot-configurationserver/README.md' | |
workflow_call: | |
jobs: | |
test: | |
name: Assemble & Test | |
runs-on: ubuntu-latest | |
env: | |
working-directory: ./components/inspectit-ocelot-configurationserver | |
container: eclipse-temurin:17 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: assemble | |
run: ../../gradlew assemble | |
working-directory: ${{env.working-directory}} | |
- name: Build jar with frontend | |
working-directory: ${{env.working-directory}} | |
run: ../../gradlew bootJarWithFrontend | |
- name: test | |
run: ../../gradlew test | |
working-directory: ${{env.working-directory}} | |
dependency-scan: | |
name: Dependency Scan | |
runs-on: ubuntu-latest | |
container: eclipse-temurin:17 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: build Configuration-server | |
run: ./gradlew :inspectit-ocelot-configurationserver:bootJarWithFrontend | |
- name: Run DependencyCheck plugin | |
uses: dependency-check/Dependency-Check_Action@main | |
id: depcheck | |
continue-on-error: true | |
with: | |
project: inspectIT/inspectit-ocelot-configuration-server | |
path: 'components/inspectit-ocelot-configurationserver' | |
format: 'HTML' | |
out: 'reports/configuration-server' | |
args: > | |
--disableAssembly | |
--disableNodeAudit | |
--nvdApiKey ${{ secrets.NVD_API_KEY }} | |
--nvdApiDelay 10000 | |
# - name: build UI | |
# run: ./gradlew :inspectit-ocelot-configurationserver-ui:buildFrontend | |
- name: Run DependencyCheck plugin | |
uses: dependency-check/Dependency-Check_Action@main | |
id: depcheck-ui | |
continue-on-error: true | |
with: | |
project: inspectIT/inspectit-ocelot-configuration-server-ui | |
path: 'components/inspectit-ocelot-configurationserver-ui' | |
format: 'HTML' | |
out: 'reports/configuration-server-ui' | |
args: > | |
--disableAssembly | |
--disableNodeAudit | |
--nvdApiKey ${{ secrets.NVD_API_KEY }} | |
--nvdApiDelay 10000 | |
- name: build Configdocsgenerator | |
run: ./gradlew :inspectit-ocelot-configdocsgenerator:assemble | |
- name: Run DependencyCheck plugin | |
uses: dependency-check/Dependency-Check_Action@main | |
id: depcheck-docs | |
continue-on-error: true | |
with: | |
project: inspectIT/inspectit-ocelot-configdocsgenerator | |
path: 'components/inspectit-ocelot-configdocsgenerator' | |
format: 'HTML' | |
out: 'reports/configdocsgenerator' | |
args: > | |
--disableAssembly | |
--disableNodeAudit | |
--nvdApiKey ${{ secrets.NVD_API_KEY }} | |
--nvdApiDelay 10000 | |
- name: Upload test results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dependency-check-report-ocelot-configurationserver | |
path: ${{ github.workspace }}/reports | |
# if DependencyCheck failed, the job should also fail, but only after the results were uploaded | |
- name: Validate DependencyCheck outcome | |
if: ${{ steps.depcheck.outcome == 'failure' }} #TODO | |
run: | | |
echo "DependencyCheck failed" | |
exit 1 |