Merge pull request #274 from philips-software/dependabot/github_actio… #670
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: Get Licenses | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- use-tree-format | |
pull_request: | |
branches: | |
- main | |
- develop | |
jobs: | |
scan: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '11.0.13' | |
distribution: 'zulu' | |
- name: Download asset | |
uses: fabriciobastian/[email protected] | |
with: | |
repository: philips-software/spdx-builder | |
file: spdx-builder.jar | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create dependency list | |
run: | | |
./gradlew -q dependencies --configuration runtimeClasspath > dependencies.txt | |
- name: Create SPDX file | |
run: | | |
cat dependencies.txt | java -jar spdx-builder.jar tree -f gradle -c .spdx-builder.yml -o spdx-builder.spdx | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: licenses | |
path: | | |
spdx-builder.spdx |