using composite
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
name: gitea pipeline build
|
||||
run-name: ${{ gitea.actor }} started maven build on ${{ gitea.branch }}
|
||||
|
||||
on:
|
||||
inputs:
|
||||
workflow_call:
|
||||
inputs:
|
||||
git_repository:
|
||||
@@ -47,14 +46,11 @@ on:
|
||||
DTRACK_API_KEY:
|
||||
required: true
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: gitea pipleine build
|
||||
runs:
|
||||
using: 'composite'
|
||||
|
||||
steps:
|
||||
- name: Clone repository
|
||||
shell: bash
|
||||
run: |
|
||||
git clone ${{ inputs.main_uuid }} source
|
||||
cd source
|
||||
@@ -74,17 +70,18 @@ jobs:
|
||||
|
||||
- name: Build with Maven
|
||||
working-directory: source
|
||||
shell: bash
|
||||
run: mvn -B clean verify sonar:sonar org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom -Dsonar.host.url="${{ inputs.sonar_host }}" -Dsonar.token="${{ secrets.SONAR_TOKEN }}"
|
||||
|
||||
- name: Upload SBOM to DTrack
|
||||
uses: DependencyTrack/gh-upload-sbom@v3
|
||||
with:
|
||||
serverHostname: ${{ dtrack_host_name }}
|
||||
serverhostname: ${{ dtrack_host_name }}
|
||||
protocol: ${{ inputs.dtrack_protocol }}
|
||||
port: ${{ inputs.dtrack_port }}
|
||||
apiKey: ${{ secrets.DTRACK_API_KEY }}
|
||||
apikey: ${{ secrets.DTRACK_API_KEY }}
|
||||
project: ${{ inputs.dtrack_project_uuid }}
|
||||
bomFilename: ${{ inputs.dtrack_bom_file }}
|
||||
bomfilename: ${{ inputs.dtrack_bom_file }}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user