Skip to content

Commit 408ae01

Browse files
committed
Merge branch 'main' of https://github.com/doecode/elinkapi into main
2 parents 8b61df3 + 54306d5 commit 408ae01

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on: [push]
2+
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
7+
steps:
8+
- uses: actions/checkout@v2
9+
10+
- name: Generate SBOM
11+
uses: CycloneDX/gh-python-generate-sbom@v2
12+
with:
13+
input: ./requirements.txt
14+
output: ./bom.json
15+
format: json
16+
17+
- name: Upload SBOM artifact
18+
uses: actions/upload-artifact@v2
19+
with:
20+
name: SBOM
21+
path: ./bom.json
22+
23+
- name: Commit SBOM to repo
24+
run: |
25+
git config --local user.email "action@github.com"
26+
git config --local user.name "GitHub Action"
27+
git add bom.json
28+
git commit -m "Adding SBOM"
29+
git push
30+
31+

bom.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json", "bomFormat": "CycloneDX", "specVersion": "1.4", "serialNumber": "urn:uuid:44fecddc-17ad-410e-8b66-b1a90377d892", "version": 1, "metadata": {"timestamp": "2024-05-22T20:02:04.823584+00:00", "tools": [{"vendor": "CycloneDX", "name": "cyclonedx-bom", "version": "3.11.7"}, {"vendor": "CycloneDX", "name": "cyclonedx-python-lib", "version": "3.1.5", "externalReferences": [{"url": "https://github.com/CycloneDX/cyclonedx-python-lib/actions", "type": "build-system"}, {"url": "https://pypi.org/project/cyclonedx-python-lib/", "type": "distribution"}, {"url": "https://cyclonedx.github.io/cyclonedx-python-lib/", "type": "documentation"}, {"url": "https://github.com/CycloneDX/cyclonedx-python-lib/issues", "type": "issue-tracker"}, {"url": "https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/LICENSE", "type": "license"}, {"url": "https://github.com/CycloneDX/cyclonedx-python-lib/blob/main/CHANGELOG.md", "type": "release-notes"}, {"url": "https://github.com/CycloneDX/cyclonedx-python-lib", "type": "vcs"}, {"url": "https://cyclonedx.org", "type": "website"}]}]}, "components": [{"type": "library", "bom-ref": "e92e3251-f500-49b5-9c6c-0bd13c7e50d6", "name": "annotated-types", "version": "0.7.0", "purl": "pkg:pypi/annotated-types@0.7.0"}, {"type": "library", "bom-ref": "b8fa5298-f6cc-4858-b2c3-91bdff87b5b2", "name": "certifi", "version": "2024.2.2", "purl": "pkg:pypi/certifi@2024.2.2"}, {"type": "library", "bom-ref": "420da4e6-8fb6-4165-a65c-e7bc89e7d154", "name": "charset-normalizer", "version": "3.3.2", "purl": "pkg:pypi/charset-normalizer@3.3.2"}, {"type": "library", "bom-ref": "4ec4d335-0ab5-4147-8ac1-d2af6bcd424a", "name": "idna", "version": "3.7", "purl": "pkg:pypi/idna@3.7"}, {"type": "library", "bom-ref": "32f3957d-0c9d-4333-983b-c12ecffcbeff", "name": "pydantic", "version": "2.7.1", "purl": "pkg:pypi/pydantic@2.7.1"}, {"type": "library", "bom-ref": "1a030227-36bc-4d43-a375-e53e13813efc", "name": "pydantic_core", "version": "2.18.2", "purl": "pkg:pypi/pydantic-core@2.18.2"}, {"type": "library", "bom-ref": "736be435-05d6-43d2-9d43-c8ba1a10adee", "name": "requests", "version": "2.32.2", "purl": "pkg:pypi/requests@2.32.2"}, {"type": "library", "bom-ref": "616b4e91-35d5-4323-8fdf-87fd2096a87d", "name": "typing_extensions", "version": "4.11.0", "purl": "pkg:pypi/typing-extensions@4.11.0"}, {"type": "library", "bom-ref": "d1085a6c-e7ea-4563-83a4-a59ac7758f38", "name": "urllib3", "version": "2.2.1", "purl": "pkg:pypi/urllib3@2.2.1"}], "dependencies": [{"ref": "e92e3251-f500-49b5-9c6c-0bd13c7e50d6", "dependsOn": []}, {"ref": "b8fa5298-f6cc-4858-b2c3-91bdff87b5b2", "dependsOn": []}, {"ref": "420da4e6-8fb6-4165-a65c-e7bc89e7d154", "dependsOn": []}, {"ref": "4ec4d335-0ab5-4147-8ac1-d2af6bcd424a", "dependsOn": []}, {"ref": "32f3957d-0c9d-4333-983b-c12ecffcbeff", "dependsOn": []}, {"ref": "1a030227-36bc-4d43-a375-e53e13813efc", "dependsOn": []}, {"ref": "736be435-05d6-43d2-9d43-c8ba1a10adee", "dependsOn": []}, {"ref": "616b4e91-35d5-4323-8fdf-87fd2096a87d", "dependsOn": []}, {"ref": "d1085a6c-e7ea-4563-83a4-a59ac7758f38", "dependsOn": []}]}

0 commit comments

Comments
 (0)