{"id":16698013,"url":"https://github.com/arlac77/rpm-codec","last_synced_at":"2026-03-06T10:32:21.174Z","repository":{"id":26267807,"uuid":"107800604","full_name":"arlac77/rpm-codec","owner":"arlac77","description":"rpm-codec is a streaming rpm packer, basically the rpm version of tar-stream","archived":false,"fork":false,"pushed_at":"2026-02-28T22:40:36.000Z","size":2154,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-01T01:41:57.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/arlac77.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-21T17:24:26.000Z","updated_at":"2026-02-28T22:40:38.000Z","dependencies_parsed_at":"2023-09-21T22:34:56.985Z","dependency_job_id":"3fce6b49-710f-476f-b1ac-103588eaf9d1","html_url":"https://github.com/arlac77/rpm-codec","commit_stats":{"total_commits":1425,"total_committers":8,"mean_commits":178.125,"dds":0.1389473684210526,"last_synced_commit":"5b1c6bd446f4fd28a2dfe742ce7f0913c6f9f315"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/arlac77/rpm-codec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Frpm-codec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Frpm-codec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Frpm-codec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Frpm-codec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arlac77","download_url":"https://codeload.github.com/arlac77/rpm-codec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arlac77%2Frpm-codec/sbom","scorecard":{"id":207388,"data":{"date":"2025-08-11","repo":{"name":"github.com/arlac77/rpm-codec","commit":"2b6162bd6bd0840d7580bde6e464ae194d1f0915"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","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":"Binary-Artifacts","score":5,"reason":"binaries present in source code","details":["Warn: binary detected: tests/fixtures/filesystem-3.2-40.fc26.aarch64.rpm:1","Warn: binary detected: tests/fixtures/hello-2.3-1.el2.rf.i386.rpm:1","Warn: binary detected: tests/fixtures/mktemp-1.5-12sls.i586.rpm:1","Warn: binary detected: tests/fixtures/mktemp-1.6-4mdv2010.1.i586.rpm:1","Warn: binary detected: tests/fixtures/to-short.rpm:1"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'contents' permission set to 'read': .github/workflows/pr_labeler.yml:6","Warn: no topLevel permission defined: .github/workflows/auto_approve.yml:1","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:12","Warn: no topLevel permission defined: .github/workflows/codeql_analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/pr_labeler.yml:1","Warn: no topLevel permission defined: .github/workflows/update_package_lock.yml:1","Warn: no topLevel permission defined: .github/workflows/update_readme_api.yml:1","Info: no jobLevel write permissions found"],"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":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/auto_approve.yml:7: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/auto_approve.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql_analysis.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/codeql_analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql_analysis.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/codeql_analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql_analysis.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/codeql_analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql_analysis.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/codeql_analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr_labeler.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/pr_labeler.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update_package_lock.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/update_package_lock.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update_package_lock.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/update_package_lock.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update_package_lock.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/update_package_lock.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update_readme_api.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/update_readme_api.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/update_readme_api.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/update_readme_api.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/update_readme_api.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/arlac77/rpm-codec/update_readme_api.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/update_package_lock.yml:30","Info:   0 out of  13 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   5 third-party GitHubAction dependencies pinned","Info:   4 out of   5 npmCommand dependencies pinned"],"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":"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":"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":-1,"reason":"no releases found","details":null,"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":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: SAST configuration detected: CodeQL","Info: all commits (30) 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"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-x4c5-c7rf-jjgv","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-g3ch-rx76-35fx"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T00:04:55.803Z","repository_id":26267807,"created_at":"2025-08-17T00:04:55.803Z","updated_at":"2025-08-17T00:04:55.803Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-12T17:50:20.630Z","updated_at":"2026-03-06T10:32:21.163Z","avatar_url":"https://github.com/arlac77.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm](https://img.shields.io/npm/v/rpm-codec.svg)](https://www.npmjs.com/package/rpm-codec)\n[![License](https://img.shields.io/badge/License-0BSD-blue.svg)](https://spdx.org/licenses/0BSD.html)\n[![bundlejs](https://deno.bundlejs.com/?q=rpm-codec\\\u0026badge=detailed)](https://bundlejs.com/?q=rpm-codec)\n[![downloads](http://img.shields.io/npm/dm/rpm-codec.svg?style=flat-square)](https://npmjs.org/package/rpm-codec)\n[![GitHub Issues](https://img.shields.io/github/issues/arlac77/rpm-codec.svg?style=flat-square)](https://github.com/arlac77/rpm-codec/issues)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Frpm-codec%2Fbadge\\\u0026style=flat)](https://actions-badge.atrox.dev/arlac77/rpm-codec/goto)\n[![Styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![Known Vulnerabilities](https://snyk.io/test/github/arlac77/rpm-codec/badge.svg)](https://snyk.io/test/github/arlac77/rpm-codec)\n\n# rpm-codec\n\nEncode/decode rpm lead/header(s)\n\n\\== Which version of RPM is supported?\n\nAccording to \u003c\u003cwikipedia\u003e\u003e there are, well, three versions of rpm:\n\n1.  'THE' rpm\n2.  rpm.org, a public effort starting around 2007 producing versions 4.8 to 4.10\n3.  rpm v5 creating version 5\n\nThe first rpm i got my hand on was 4.4, so for now the one and only\nimplementation is 4.4.\nDo *not* expect any newer features such as compression other than gzip (lzma,\nxz, ...).\n\n# RPM file format specification\n\nRPM files are persisted in network byte order and consist of four parts.\n\n# Lead\n\nOur lead looks like this:\n\nmagic (0-3)::\nMagic value for both 'file' and rpm utilities ('ED AB EE DB')\n\nmajor (4)::\nRPM Major version ('03')\n\nminor (5)::\nRPM minor version ('00')\n\ntype (6-9)::\nType binary ('00 00 00 00').\nType source ('00 00 00 01') not supported yet.\n\ndeprecated (10-95)::\nThe rest is not used any more because its format is inflexible.\nContent is superseded by the header.\nIt's only use is to support non-rpm utilities such as 'file' that can identify\nrpms based on a magic value.\n(85 times '00')\n\n# Signature\n\nSignature format is equal to header format.\nThis lib does not support checksums because the order of the checksum field\nwould require the complete rpm structure to be processed before streaming could\ncontinue.\n\n# Header\n\nSupported index types:\n\n*   NULL = 0\n*   CHAR = 1\n*   INT8 = 2\n*   INT16 = 3\n*   INT32 = 4\n*   INT64 = 5\n*   STRING = 6\n*   BIN = 7\n*   STRING\\_ARRAY = 8\n\n# Payload\n\nA gzip,xz compressed cpio structure carries the rpm payload. Other compressions\nalgorithms exist, and are supported by newer versions of 'rpm', but for now it's\ngzip.\n\n# API\n\n\u003c!-- Generated by documentation.js. Update this documentation by updating the source code. --\u003e\n\n### Table of Contents\n\n*   [RPMHeader](#rpmheader)\n    *   [Properties](#properties)\n*   [RPMDecoder](#rpmdecoder)\n    *   [Parameters](#parameters)\n*   [defaultEntryHandler](#defaultentryhandler)\n    *   [Parameters](#parameters-1)\n*   [contentDecoder](#contentdecoder)\n    *   [Parameters](#parameters-2)\n*   [TYPE\\_NULL](#type_null)\n*   [TYPE\\_STRING](#type_string)\n*   [TYPE\\_STRING\\_ARRAY](#type_string_array)\n*   [TYPE\\_I18NSTRING](#type_i18nstring)\n\n## RPMHeader\n\ndecoded rpm header\n\nType: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)\n\n### Properties\n\n*   `lead` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**\u0026#x20;\n*   `signature` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**\u0026#x20;\n*   `header` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)**\u0026#x20;\n\n## RPMDecoder\n\nDecodes the rpm header.\n\n### Parameters\n\n*   `stream` **[Stream](https://nodejs.org/api/stream.html)**\u0026#x20;\n\nReturns **[RPMHeader](#rpmheader)**\u0026#x20;\n\n## defaultEntryHandler\n\nnull handler simply skips content\n\n### Parameters\n\n*   `header` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** file header\n*   `stream` **ReadStream**\u0026#x20;\n*   `callback` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**\u0026#x20;\n\n## contentDecoder\n\nDecode the body part of an rpm stream\n\n### Parameters\n\n*   `result` **[RPMHeader](#rpmheader)**\u0026#x20;\n*   `entryHandler` **EntryHandler**  (optional, default `defaultEntryHandler`)\n\n## TYPE\\_NULL\n\nNot Implemented\n\nType: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)\n\n## TYPE\\_STRING\n\nvariable, NUL terminated\n\nType: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)\n\n## TYPE\\_STRING\\_ARRAY\n\nVariable, sequence of NUL terminated strings\n\nType: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)\n\n## TYPE\\_I18NSTRING\n\nVariable, sequence of NUL terminated strings\n\nType: [number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)\n\n# Bibliography\n\n\\[bibliography]\n\n*   [wikipedia](http://en.wikipedia.org/wiki/RPM_Package_Manager)\n    RPM Package Manager\n*   *maxrpm* Edward C. Bailey. Maximum rpm. Red Hat Software, Inc. 1997.\n*   [LSB Linux Base RPM File Format](http://refspecs.linuxbase.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/pkgformat.html)\n*   [cpio FreeBSD cpio (odc and newc) file format spec](http://people.freebsd.org/%7Ekientzle/libarchive/man/cpio.5.txt)\n*   [kernel Al Viro, H. Peter Anvin. initramfs buffer format. Linux Kernel. 2002](https://www.kernel.org/doc/Documentation/early-userspace/buffer-format.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Frpm-codec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farlac77%2Frpm-codec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farlac77%2Frpm-codec/lists"}