ci: support for license artifacts
Some checks failed
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 26s
Build, Package and Push Images / container-build (push) Successful in 1m16s
Build, Package and Push Images / generate-licences (push) Failing after 20s
Build, Package and Push Images / container-sbom-scan (push) Has been cancelled
Build, Package and Push Images / sbom-scan (push) Has been cancelled
Build, Package and Push Images / sonarqube (push) Has been cancelled
Some checks failed
Build, Package and Push Images / preprocess (push) Successful in 2s
Build, Package and Push Images / build (push) Successful in 26s
Build, Package and Push Images / container-build (push) Successful in 1m16s
Build, Package and Push Images / generate-licences (push) Failing after 20s
Build, Package and Push Images / container-sbom-scan (push) Has been cancelled
Build, Package and Push Images / sbom-scan (push) Has been cancelled
Build, Package and Push Images / sonarqube (push) Has been cancelled
This commit is contained in:
parent
d5d517e2a4
commit
03f53faac9
3 changed files with 27 additions and 0 deletions
|
@ -177,3 +177,25 @@ jobs:
|
||||||
projectVersion: ${{ github.ref_name }}
|
projectVersion: ${{ github.ref_name }}
|
||||||
bomFilename: ${{ github.workspace }}/container-bom.json
|
bomFilename: ${{ github.workspace }}/container-bom.json
|
||||||
|
|
||||||
|
generate-licences:
|
||||||
|
needs: [container-build, preprocess]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup dotnet
|
||||||
|
uses: https://github.com/actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: 8.0
|
||||||
|
- name: Install nuget-license
|
||||||
|
run: dotnet tool install --global dotnet-project-licenses
|
||||||
|
- name: Export licenses
|
||||||
|
run: dotnet-project-licenses -i . -u --projects-filter .\projects_ignore_licenses.json -m -j -e -f licenses
|
||||||
|
- name: Package licenses
|
||||||
|
run: zip licenses
|
||||||
|
- name: Upload licenses
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: licenses.zip
|
||||||
|
path: artifacts/licenses.zip
|
||||||
|
retention-days: 31
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -3,6 +3,8 @@
|
||||||
##
|
##
|
||||||
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||||
|
|
||||||
|
licenses
|
||||||
|
|
||||||
# User-specific files
|
# User-specific files
|
||||||
*.rsuser
|
*.rsuser
|
||||||
*.suo
|
*.suo
|
||||||
|
|
3
projects_ignore_licenses.json
Normal file
3
projects_ignore_licenses.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[
|
||||||
|
"Benchmarks"
|
||||||
|
]
|
Loading…
Reference in a new issue