Add SPDX 3.0 for example7 #39
Workflow file for this run
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: SPDX validation | |
on: pull_request | |
jobs: | |
SPDX_Validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup | |
run: | | |
sudo apt install -y default-jdk maven | |
git clone https://github.com/spdx/tools-java.git && cd tools-java | |
export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::") | |
mvn clean install && cd .. | |
- name: Validate SPDX Documents | |
run: | | |
find . -name *.spdx -o -name *.json -exec echo {} \; -exec java -jar tools-java/target/tools-java-*-jar-with-dependencies.jar Verify {} \; |