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

This commit is contained in:
Timothy Schenk 2024-01-29 14:00:42 +01:00
parent d5d517e2a4
commit 03f53faac9
3 changed files with 27 additions and 0 deletions

View file

@ -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
View file

@ -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

View file

@ -0,0 +1,3 @@
[
"Benchmarks"
]