{"id":36647751,"url":"https://github.com/containerbuildsystem/dockerfile-parse","last_synced_at":"2026-01-12T10:02:27.166Z","repository":{"id":33944042,"uuid":"37669690","full_name":"containerbuildsystem/dockerfile-parse","owner":"containerbuildsystem","description":"Python library for parsing Dockerfile files.","archived":false,"fork":false,"pushed_at":"2024-08-12T04:45:15.000Z","size":243,"stargazers_count":140,"open_issues_count":12,"forks_count":53,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-09-27T19:01:48.669Z","etag":null,"topics":["dockerfile","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containerbuildsystem.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-18T15:59:46.000Z","updated_at":"2025-08-16T23:08:33.000Z","dependencies_parsed_at":"2024-06-18T14:07:38.811Z","dependency_job_id":null,"html_url":"https://github.com/containerbuildsystem/dockerfile-parse","commit_stats":{"total_commits":210,"total_committers":33,"mean_commits":6.363636363636363,"dds":0.7952380952380953,"last_synced_commit":"3a4360f78e60ac72b6ffc627135fca27c180c4ad"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/containerbuildsystem/dockerfile-parse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fdockerfile-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fdockerfile-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fdockerfile-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fdockerfile-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containerbuildsystem","download_url":"https://codeload.github.com/containerbuildsystem/dockerfile-parse/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containerbuildsystem%2Fdockerfile-parse/sbom","scorecard":{"id":303282,"data":{"date":"2025-08-11","repo":{"name":"github.com/containerbuildsystem/dockerfile-parse","commit":"3a4360f78e60ac72b6ffc627135fca27c180c4ad"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5,"checks":[{"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":7,"reason":"Found 11/14 approved changesets -- score normalized to 7","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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql.yml:16","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql.yml:17","Warn: no topLevel permission defined: .github/workflows/codeql.yml:1","Warn: no topLevel permission defined: .github/workflows/linters.yaml:1","Warn: no topLevel permission defined: .github/workflows/unittests.yaml: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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/codeql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linters.yaml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/linters.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linters.yaml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/linters.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linters.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/linters.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linters.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/linters.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/linters.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/linters.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/linters.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/linters.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unittests.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/unittests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unittests.yaml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/unittests.yaml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/unittests.yaml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/containerbuildsystem/dockerfile-parse/unittests.yaml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/linters.yaml:31","Warn: pipCommand not pinned by hash: .github/workflows/linters.yaml:32","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:41","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:42","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:59","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:60","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:61","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:71","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:72","Warn: pipCommand not pinned by hash: .github/workflows/unittests.yaml:73","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of  10 pipCommand 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" 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":"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":7,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 0 commits out of 27 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-17T21:19:09.664Z","repository_id":33944042,"created_at":"2025-08-17T21:19:09.664Z","updated_at":"2025-08-17T21:19:09.664Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["dockerfile","python"],"created_at":"2026-01-12T10:02:27.101Z","updated_at":"2026-01-12T10:02:27.153Z","avatar_url":"https://github.com/containerbuildsystem.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dockerfile-parse\n\n[![unittests status badge]][unittests status link]\n[![coveralls status badge]][coveralls status link]\n[![lgtm python badge]][lgtm python link]\n[![lgtm alerts badge]][lgtm alerts link]\n[![linters status badge]][linters status link]\n\nPython library for parsing Dockerfile files.\n\n## Installation\n\n### From PyPI\n\n```shell\npip install dockerfile-parse\n```\n\n### From git\n\nClone this git repo and install using the python installer\n\n```shell\ngit clone https://github.com/containerbuildsystem/dockerfile-parse.git\ncd dockerfile-parse\nsudo pip install .\n```\n\n## Usage\n\n```python\nfrom pprint import pprint\nfrom dockerfile_parse import DockerfileParser\n\ndfp = DockerfileParser()\ndfp.content = \"\"\"\\\nFrom  base\nLABEL foo=\"bar baz\"\nUSER  me\"\"\"\n\n# Print the parsed structure:\npprint(dfp.structure)\npprint(dfp.json)\npprint(dfp.labels)\n\n# Set a new base:\ndfp.baseimage = 'centos:7'\n\n# Print the new Dockerfile with an updated FROM line:\nprint(dfp.content)\n```\n\n[coveralls status badge]: https://coveralls.io/repos/containerbuildsystem/dockerfile-parse/badge.svg?branch=master\n[coveralls status link]: https://coveralls.io/r/containerbuildsystem/dockerfile-parse?branch=master\n[lgtm python badge]: https://img.shields.io/lgtm/grade/python/g/containerbuildsystem/dockerfile-parse.svg?logo=lgtm\u0026logoWidth=18\n[lgtm python link]: https://lgtm.com/projects/g/containerbuildsystem/dockerfile-parse/context:python\n[lgtm alerts badge]: https://img.shields.io/lgtm/alerts/g/containerbuildsystem/dockerfile-parse.svg?logo=lgtm\u0026logoWidth=18\n[lgtm alerts link]: https://lgtm.com/projects/g/containerbuildsystem/dockerfile-parse/alerts\n[linters status badge]: https://github.com/containerbuildsystem/dockerfile-parse/workflows/Linters/badge.svg?branch=master\u0026event=push\n[linters status link]: https://github.com/containerbuildsystem/dockerfile-parse/actions?query=event%3Apush+branch%3Amaster+workflow%3A%22Linters%22\n[unittests status badge]: https://github.com/containerbuildsystem/dockerfile-parse/workflows/Unittests/badge.svg?branch=master\u0026event=push\n[unittests status link]: https://github.com/containerbuildsystem/dockerfile-parse/actions?query=event%3Apush+branch%3Amaster+workflow%3A%22Unittests%22\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainerbuildsystem%2Fdockerfile-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainerbuildsystem%2Fdockerfile-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainerbuildsystem%2Fdockerfile-parse/lists"}