{"id":27881841,"url":"https://github.com/src-d/go-siva","last_synced_at":"2025-09-21T11:15:33.335Z","repository":{"id":57480695,"uuid":"69565817","full_name":"src-d/go-siva","owner":"src-d","description":"siva - seekable indexed verifiable archiver","archived":false,"fork":false,"pushed_at":"2019-10-05T19:58:42.000Z","size":102,"stargazers_count":101,"open_issues_count":3,"forks_count":19,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-07-05T10:58:17.479Z","etag":null,"topics":["archive","siva"],"latest_commit_sha":null,"homepage":"https://godoc.org/gopkg.in/src-d/go-siva.v1","language":"Go","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/src-d.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-29T12:34:40.000Z","updated_at":"2025-05-12T21:05:06.000Z","dependencies_parsed_at":"2022-09-26T16:31:05.942Z","dependency_job_id":null,"html_url":"https://github.com/src-d/go-siva","commit_stats":null,"previous_names":["src-d/siva"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/src-d/go-siva","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgo-siva","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgo-siva/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgo-siva/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgo-siva/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/src-d","download_url":"https://codeload.github.com/src-d/go-siva/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/src-d%2Fgo-siva/sbom","scorecard":{"id":843534,"data":{"date":"2025-08-11","repo":{"name":"github.com/src-d/go-siva","commit":"4ba248c1cf1003995d356f11935287b3e99decca"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":8,"reason":"Found 14/16 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.8.0 not signed: https://api.github.com/repos/src-d/go-siva/releases/20270935","Warn: release artifact v1.7.0 not signed: https://api.github.com/repos/src-d/go-siva/releases/18994216","Warn: release artifact v1.6.0 not signed: https://api.github.com/repos/src-d/go-siva/releases/18929408","Warn: release artifact v1.5.0 not signed: https://api.github.com/repos/src-d/go-siva/releases/16325483","Warn: release artifact v1.4.0 not signed: https://api.github.com/repos/src-d/go-siva/releases/15478899","Warn: release artifact v1.8.0 does not have provenance: https://api.github.com/repos/src-d/go-siva/releases/20270935","Warn: release artifact v1.7.0 does not have provenance: https://api.github.com/repos/src-d/go-siva/releases/18994216","Warn: release artifact v1.6.0 does not have provenance: https://api.github.com/repos/src-d/go-siva/releases/18929408","Warn: release artifact v1.5.0 does not have provenance: https://api.github.com/repos/src-d/go-siva/releases/16325483","Warn: release artifact v1.4.0 does not have provenance: https://api.github.com/repos/src-d/go-siva/releases/15478899"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T20:58:13.001Z","repository_id":57480695,"created_at":"2025-08-23T20:58:13.001Z","updated_at":"2025-08-23T20:58:13.001Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276229774,"owners_count":25606954,"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","status":"online","status_checked_at":"2025-09-21T02:00:07.055Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["archive","siva"],"created_at":"2025-05-05T05:05:38.732Z","updated_at":"2025-09-21T11:15:33.298Z","avatar_url":"https://github.com/src-d.png","language":"Go","readme":"# siva format [![GoDoc](https://godoc.org/gopkg.in/src-d/go-siva.v1?status.svg)](https://godoc.org/gopkg.in/src-d/go-siva.v1) [![Build Status](https://travis-ci.org/src-d/go-siva.svg?branch=master)](https://travis-ci.org/src-d/go-siva) [![Build status](https://ci.appveyor.com/api/projects/status/github/src-d/go-siva?branch=master\u0026svg=true)](https://ci.appveyor.com/project/mcuadros/go-siva) [![codebeat badge](https://codebeat.co/badges/a821494a-ff72-4756-9a70-652436e93485)](https://codebeat.co/projects/github-com-src-d-go-siva)\n\n_siva_ stand for \u003cb\u003es\u003c/b\u003eeekable \u003cb\u003ei\u003c/b\u003endexed \u003cb\u003ev\u003c/b\u003eerifiable \u003cb\u003ea\u003c/b\u003erchiver\n\n_siva_ is archive format very similar to tar or zip, focused on allowing: constant-time random file access, seekable access to the contained files and concatenable archive files\n\n![siva](https://cloud.githubusercontent.com/assets/1573114/19213424/8a97b7ee-8d6c-11e6-9c84-ddb58862dd94.png)\n\nThe library implements a very similar API to the go [tar package](https://golang.org/pkg/archive/tar/), allowing full control over and low level access to the contained files.\n\n- [Library reference](http://godoc.org/gopkg.in/src-d/go-siva.v1)\n- [Command-line interface](#cli)\n- [Format specification](https://github.com/src-d/go-siva/blob/master/SPEC.md)\n\n\nInstallation\n------------\n\nThe recommended way to install siva\n\n```\ngo get -u gopkg.in/src-d/go-siva.v1/...\n```\n\nExample\n-------\n\nCreating a siva file:\n\n```go\n// Create a buffer to write our archive to.\nbuf := new(bytes.Buffer)\n\n// Create a new siva archive.\nw := siva.NewWriter(buf)\n\n// Add some files to the archive.\nvar files = []struct {\n    Name, Body string\n}{\n    {\"readme.txt\", \"This archive contains some text files.\"},\n    {\"gopher.txt\", \"Gopher names:\\nGeorge\\nGeoffrey\\nGonzo\"},\n    {\"todo.txt\", \"Get animal handling license.\"},\n}\nfor _, file := range files {\n    hdr := \u0026siva.Header{\n        Name:    file.Name,\n        Mode:    0600,\n        ModTime: time.Now(),\n    }\n    if err := w.WriteHeader(hdr); err != nil {\n        log.Fatalln(err)\n    }\n    if _, err := w.Write([]byte(file.Body)); err != nil {\n        log.Fatalln(err)\n    }\n}\n// Make sure to check the error on Close.\nif err := w.Close(); err != nil {\n    log.Fatalln(err)\n}\n```\n\n\nReading from a siva file:\n```go\n// Open the siva archive for reading.\nfile := bytes.NewReader(buf.Bytes())\nr := siva.NewReader(file)\n\n// Get all the files in the siva file.\ni, err := r.Index()\nif err != nil {\n    log.Fatalln(err)\n}\n\n// Iterate through the files in the archive.\nfor _, e := range i {\n    content, err := r.Get(e)\n    if err != nil {\n        log.Fatalln(err)\n    }\n    fmt.Printf(\"Contents of %s:\\n\", e.Name)\n    if _, err := io.Copy(os.Stdout, content); err != nil {\n        log.Fatalln(err)\n    }\n    fmt.Println()\n}\n```\n\n\n\u003ca name=\"cli\"\u003e\u003c/a\u003eCommand-line interface\n----------------------\nsiva cli interface, is a convenient command that helps you to creates and manipulates siva files.\n\nOutput from: `./siva --help`:\n\n```\nUsage:\n  siva [OPTIONS] \u003ccommand\u003e\n\nHelp Options:\n  -h, --help  Show this help message\n\nAvailable commands:\n  list     List the items contained on a file.\n  pack     Create a new archive containing the specified items.\n  unpack   Extract to disk from the archive.\n  version  Show the version information.\n```\n\nOther comments\n-----------------------\n\n- The `Index Signature` is specified as a sequence of 3 bytes. Go uses byte as an alias for uint8.\n- `File Mode` in an `Index entry`, see [issue](https://github.com/src-d/go-siva/issues/11).\n- This implementation left in the client of the library side the task of check the integrity of the file contents. It just checks for the `Index` integrity.\n\nLicense\n-------\n\nMIT, see [LICENSE](LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-d%2Fgo-siva","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrc-d%2Fgo-siva","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrc-d%2Fgo-siva/lists"}