{"id":17919208,"url":"https://github.com/louib/nix2sbom","last_synced_at":"2025-03-24T00:31:25.980Z","repository":{"id":188142788,"uuid":"678176407","full_name":"louib/nix2sbom","owner":"louib","description":"nix2sbom extracts the CycloneDX and SPDX SBOM (Software Bill of Materials) from a Nix derivation","archived":false,"fork":false,"pushed_at":"2024-09-16T23:38:39.000Z","size":385,"stargazers_count":8,"open_issues_count":12,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-09-17T04:06:43.819Z","etag":null,"topics":["cyclonedx","github-actions","nix","nixos","purl","sbom","sbom-generator","security","software-bill-of-materials","spdx","supply-chain","supply-chain-security"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/louib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-13T23:46:21.000Z","updated_at":"2024-09-16T23:35:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"d3c84203-5745-48f0-9776-6539349539b7","html_url":"https://github.com/louib/nix2sbom","commit_stats":null,"previous_names":["louib/nix2sbom"],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louib%2Fnix2sbom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louib%2Fnix2sbom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louib%2Fnix2sbom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louib%2Fnix2sbom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louib","download_url":"https://codeload.github.com/louib/nix2sbom/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221925390,"owners_count":16902687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cyclonedx","github-actions","nix","nixos","purl","sbom","sbom-generator","security","software-bill-of-materials","spdx","supply-chain","supply-chain-security"],"created_at":"2024-10-28T20:15:29.307Z","updated_at":"2024-10-28T20:15:30.064Z","avatar_url":"https://github.com/louib.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# nix2sbom\n![GitHub Release](https://img.shields.io/github/v/release/louib/nix2sbom)\n[![FlakeHub](https://img.shields.io/endpoint?url=https://flakehub.com/f/louib/nix2sbom/badge)](https://flakehub.com/flake/louib/nix2sbom)\n[![GitHub](https://img.shields.io/badge/github-louib/nix2sbom-bb7a3652750d7dfd9ba196181cf30f809b3d7012?logo=github\")](https://github.com/louib/nix2sbom)\n[![Build Status](https://github.com/louib/nix2sbom/actions/workflows/merge.yml/badge.svg?branch=main)](https://github.com/louib/nix2sbom/actions/workflows/merge.yml)\n[![Dependency Status](https://deps.rs/repo/github/louib/nix2sbom/status.svg)](https://deps.rs/repo/github/louib/nix2sbom)\n[![License File](https://img.shields.io/github/license/louib/nix2sbom)](https://github.com/louib/nix2sbom/blob/main/LICENSE)\n\n`nix2sbom` extracts the SBOM (Software Bill of Materials) from a Nix derivation\n\n📚 [Documentation is here](https://github.com/louib/nix2sbom/wiki/Use-nix2sbom)\n\n## Features\n* Supports CycloneDX 1.4 format\n* Supports SPDX 2.3 format (Experimental)\n* Supports JSON and YAML serialization formats\n* Generates a SBOM for your current `NixOS` system\n* Detects and handles patches\n* Discovers git URLs (using archive URLs)\n\n## Using\n### In GitHub Actions\nHere is an example of how to generate an SPDX manifest for your nix flake in a GHA workflow:\n```yaml\n  generate-sbom-manifests:\n    name: Generate SPDX SBOM manifest\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v4\n\n      - name: Install Nix\n      - uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14\n\n      - name: Install nix2sbom\n        uses: EricCrosson/install-github-release-binary@681cc3de7c5c5ac935b1a2a19e4e0c577c4d3027 # v2.3.4\n        with:\n          targets: louib/nix2sbom/nix2sbom@v2.4.5\n\n      - name: Generate the SPDX manifest\n        run: |\n          nix2sbom .# -f spdx \u003e sbom.spdx.json\n```\n\n## Installing\n\n### With Nix\nAssuming that you have enabled both the `flakes` and `nix-command` experimental features:\n```\nnix profile install github:louib/nix2sbom\n```\n\n### With Cargo\n```\ncargo install --path .\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouib%2Fnix2sbom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouib%2Fnix2sbom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouib%2Fnix2sbom/lists"}