Skip to content

Commit 1ccc6fe

Browse files
Merge pull request #12 from acompany-develop/imamura/ci/spdx
ci: add spdx workflow
2 parents 03476c0 + 6ba690f commit 1ccc6fe

File tree

8 files changed

+35
-2
lines changed

8 files changed

+35
-2
lines changed

.github/workflows/spdx.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: spdx
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
check-spdx-headers:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: enarx/spdx@master
19+
with:
20+
licenses: MIT

examples/display.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: MIT
23

34
"""
45
Example usage of pysnputils.
56
"""
7+
68
from __future__ import annotations
79

810
import argparse

examples/fetch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: MIT
23

34
"""
45
Example usage of pysnputils.fetch.
56
"""
7+
68
from __future__ import annotations
79

810
import argparse

examples/verify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#!/usr/bin/env python3
2+
# SPDX-License-Identifier: MIT
23

34
"""
45
Verify SNP attestation reports and VCEK certificate chains.
56
"""
7+
68
from __future__ import annotations
79

810
import argparse

pysnputils/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
13
"""
24
pysnputils - Python utilities for AMD SEV-SNP attestation.
35
"""

pysnputils/fetch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
# SPDX-License-Identifier: MIT
2+
13
"""
2-
Fetch VCEK certificate chains from AMD KDS.
3-
AMD KDS Revision: 1.00 (January 2025)
4+
Fetch VCEK certificate chains and CRLs from AMD KDS.
45
"""
56

67
__all__ = [

pysnputils/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
13
"""
24
AMD SEV-SNP Attestation Report Type Definitions.
35
"""

pysnputils/verify.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: MIT
2+
13
"""
24
Verify SNP attestation reports and VCEK certificate chains.
35
"""

0 commit comments

Comments
 (0)