Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/doecode/elinkapi into main
Browse files Browse the repository at this point in the history
  • Loading branch information
nensor committed Jul 25, 2024
2 parents 8b61df3 + 54306d5 commit 408ae01
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Generate SBOM
uses: CycloneDX/gh-python-generate-sbom@v2
with:
input: ./requirements.txt
output: ./bom.json
format: json

- name: Upload SBOM artifact
uses: actions/upload-artifact@v2
with:
name: SBOM
path: ./bom.json

- name: Commit SBOM to repo
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add bom.json
git commit -m "Adding SBOM"
git push
1 change: 1 addition & 0 deletions bom.json
Original file line number Diff line number Diff line change
@@ -0,0 +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/[email protected]"}, {"type": "library", "bom-ref": "b8fa5298-f6cc-4858-b2c3-91bdff87b5b2", "name": "certifi", "version": "2024.2.2", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "420da4e6-8fb6-4165-a65c-e7bc89e7d154", "name": "charset-normalizer", "version": "3.3.2", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "4ec4d335-0ab5-4147-8ac1-d2af6bcd424a", "name": "idna", "version": "3.7", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "32f3957d-0c9d-4333-983b-c12ecffcbeff", "name": "pydantic", "version": "2.7.1", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "1a030227-36bc-4d43-a375-e53e13813efc", "name": "pydantic_core", "version": "2.18.2", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "736be435-05d6-43d2-9d43-c8ba1a10adee", "name": "requests", "version": "2.32.2", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "616b4e91-35d5-4323-8fdf-87fd2096a87d", "name": "typing_extensions", "version": "4.11.0", "purl": "pkg:pypi/[email protected]"}, {"type": "library", "bom-ref": "d1085a6c-e7ea-4563-83a4-a59ac7758f38", "name": "urllib3", "version": "2.2.1", "purl": "pkg:pypi/[email protected]"}], "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 comments on commit 408ae01

Please sign in to comment.