Skip to content

Commit

Permalink
add plugin and create github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vakmeth committed Dec 4, 2023
1 parent 9bfdd14 commit cf98aed
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/owasp-dt-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Dependency-Track'

on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Generates a BoM and uploads it to OWASP Dependency Track
- name: Generates BoM and upload to OWASP DTrack
id: riskscoreFromDT
uses: Quobis/[email protected]
with:
url: 'https://deptrack.ocp.cloudscale.puzzle.ch'
key: '${{ secrets.SECRET_OWASP_DT_KEY }}'
language: 'java'
- name: Get the output time
run: echo "The risk score of the project is ${{ steps.riskscoreFromDT.outputs.riskscore }}"
26 changes: 26 additions & 0 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,32 @@
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.7.1</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>makeAggregateBom</goal>
</goals>
</execution>
</executions>
<configuration>
<projectType>library</projectType>
<schemaVersion>1.3</schemaVersion>
<includeBomSerialNumber>true</includeBomSerialNumber>
<includeCompileScope>true</includeCompileScope>
<includeProvidedScope>true</includeProvidedScope>
<includeRuntimeScope>true</includeRuntimeScope>
<includeSystemScope>true</includeSystemScope>
<includeTestScope>false</includeTestScope>
<includeLicenseText>false</includeLicenseText>
<outputFormat>all</outputFormat>
<outputName>bom</outputName>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down

0 comments on commit cf98aed

Please sign in to comment.