Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update spdx.yml #55

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions .github/workflows/spdx.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Generate SPDX Document
name: SPDX Generation and Validation

on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types: [created]

jobs:
generate-spdx:
spdx:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3 # Make sure to use the latest version

# - name: Install SPDX Tools
# run: |
# sudo apt-get update
# sudo apt-get install -y spdx-tools

- name: Install Python
run: sudo apt-get install -y python3-pip

- name: Install SPDX Tools via pip
run: |
pip install spdx-tools
echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Generate SPDX Document
run: |
spdx-doc-generator --format=spdx-json --output=spdx-document.spdx.json .

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: spdx-document
path: spdx-document.spdx.json
- name: Checkout the repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install SPDX tools
run: |
pip install spdx-tools
pip install spdx-creator

- name: Generate SPDX Document
run: |
spdx-creator --name "searchSECO-miner" --version "1.0.0" --url "https://github.com/SecureSECO/searchSECO-miner" --author "Slinger Jansen" --output spdx-file.spdx

- name: Validate SPDX Document
run: |
spdx-tools verify spdx-file.spdx
Loading