{"id":20847408,"url":"https://github.com/paketo-buildpacks/native-image","last_synced_at":"2026-03-13T16:02:30.867Z","repository":{"id":38313237,"uuid":"287329792","full_name":"paketo-buildpacks/native-image","owner":"paketo-buildpacks","description":"A Cloud Native Buildpack that creates native images from Java applications","archived":false,"fork":false,"pushed_at":"2026-01-12T02:53:05.000Z","size":573,"stargazers_count":56,"open_issues_count":15,"forks_count":10,"subscribers_count":6,"default_branch":"main","last_synced_at":"2026-01-14T17:39:51.690Z","etag":null,"topics":["cnb","hacktoberfest","java","jvm-applications","native-image","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paketo-buildpacks.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-13T16:33:07.000Z","updated_at":"2026-01-08T10:18:41.000Z","dependencies_parsed_at":"2023-12-28T16:30:13.616Z","dependency_job_id":"a8561a81-bb92-428c-b391-bb1878767554","html_url":"https://github.com/paketo-buildpacks/native-image","commit_stats":{"total_commits":312,"total_committers":10,"mean_commits":31.2,"dds":0.5801282051282051,"last_synced_commit":"329b7f4e95a69c6c58b956868ddb068913c0c426"},"previous_names":["paketo-buildpacks/spring-boot-native-image"],"tags_count":73,"template":false,"template_full_name":null,"purl":"pkg:github/paketo-buildpacks/native-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paketo-buildpacks%2Fnative-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paketo-buildpacks%2Fnative-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paketo-buildpacks%2Fnative-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paketo-buildpacks%2Fnative-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paketo-buildpacks","download_url":"https://codeload.github.com/paketo-buildpacks/native-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paketo-buildpacks%2Fnative-image/sbom","scorecard":{"id":718068,"data":{"date":"2025-08-11","repo":{"name":"github.com/paketo-buildpacks/native-image","commit":"ac7f26e027f0cb63d15f5f44cfed73f4829afead"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6,"checks":[{"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":5,"reason":"7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","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":"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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pb-create-package.yml:1","Warn: no topLevel permission defined: .github/workflows/pb-minimal-labels.yml:1","Warn: no topLevel permission defined: .github/workflows/pb-synchronize-labels.yml:1","Warn: no topLevel permission defined: .github/workflows/pb-tests.yml:1","Warn: no topLevel permission defined: .github/workflows/pb-update-draft-release.yml:1","Warn: no topLevel permission defined: .github/workflows/pb-update-go.yml:1","Warn: no topLevel permission defined: .github/workflows/pb-update-pipeline.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":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-create-package.yml:206: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-create-package.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-minimal-labels.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-minimal-labels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-minimal-labels.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-minimal-labels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-synchronize-labels.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-synchronize-labels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-synchronize-labels.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-synchronize-labels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:179: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:180: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-tests.yml:185: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-tests.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-update-draft-release.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-draft-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-update-draft-release.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-draft-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-update-draft-release.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-draft-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-update-go.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-update-go.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-go.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-update-go.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-update-pipeline.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-pipeline.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pb-update-pipeline.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-pipeline.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pb-update-pipeline.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/paketo-buildpacks/native-image/pb-update-pipeline.yml/main?enable=pin","Warn: goCommand not pinned by hash: .github/workflows/pb-create-package.yml:28","Warn: goCommand not pinned by hash: .github/workflows/pb-tests.yml:27","Warn: goCommand not pinned by hash: .github/workflows/pb-update-pipeline.yml:26","Info:   0 out of  15 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  12 third-party GitHubAction dependencies pinned","Info:   1 out of   4 goCommand 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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/paketo-buildpacks/.github/SECURITY.md:1","Info: Found linked content: github.com/paketo-buildpacks/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/paketo-buildpacks/.github/SECURITY.md:1","Info: Found text in security policy: github.com/paketo-buildpacks/.github/SECURITY.md:1"],"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":"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 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"}}]},"last_synced_at":"2025-08-22T10:19:23.621Z","repository_id":38313237,"created_at":"2025-08-22T10:19:23.622Z","updated_at":"2025-08-22T10:19:23.622Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29179569,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T22:12:24.066Z","status":"ssl_error","status_checked_at":"2026-02-06T22:12:09.859Z","response_time":59,"last_error":"SSL_read: 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":["cnb","hacktoberfest","java","jvm-applications","native-image","spring-boot"],"created_at":"2024-11-18T02:20:15.933Z","updated_at":"2026-02-06T23:03:06.675Z","avatar_url":"https://github.com/paketo-buildpacks.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Paketo Buildpack for Native Image\n\n## Buildpack ID: `paketo-buildpacks/native-image`\n## Registry URLs: `docker.io/paketobuildpacks/native-image`\n\nThe Paketo Buildpack for Native Image is a Cloud Native Buildpack that uses the [GraalVM Native Image builder][native-image] (`native-image`) to compile a standalone executable from an executable JAR.\n\nMost users should not use this component buildpack directly and should instead use the [Paketo Java Native Image][bp/java-native-image], which provides the full set of buildpacks required to build a native image application.\n\n## Behavior\n\nThis buildpack will participate if one the following conditions are met:\n\n* `$BP_NATIVE_IMAGE` is set.\n* An upstream buildpack requests `native-image-application` in the build plan.\n* An upstream buildpack provides `native-processed` in the build plan.\n\nThe buildpack will do the following:\n\n* Requests that the Native Image builder be installed by requiring `native-image-builder` in the build plan.\n* If `$BP_BINARY_COMPRESSION_METHOD` is set to `upx`, requests that UPX be installed by requiring `upx` in the buildplan.\n* Uses `native-image` to build a GraalVM native image and removes existing bytecode. Defaults to building the `/workspace` as an exploded JAR. If `$BP_NATIVE_IMAGE_BUILT_ARTIFACT` is set, it will build from the specified JAR file.\n* Uses `$BP_BINARY_COMPRESSION_METHOD` if set to `upx` or `gzexe` to compress the native image.\n\n## Configuration\n\n| Environment Variable                    | Description                                                                                                                                                                                                                                   |\n| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `$BP_NATIVE_IMAGE`                      | Whether to build a native image from the application.  Defaults to false.                                                                                                                                                                     |\n| `$BP_NATIVE_IMAGE_BUILD_ARGUMENTS`      | Arguments to pass to directly to the `native-image` command. These arguments must be valid and correctly formed or the `native-image` command will fail.                                                                                      |\n| `$BP_NATIVE_IMAGE_BUILD_ARGUMENTS_FILE` | A file containing arguments to pass to directly to the `native-image` command. The file must exist and the contents must be valid and correctly formed or the `native-image` command will fail. The file must follow the `@argument` file format as [specified by Java](https://docs.oracle.com/javase/8/docs/technotes/tools/unix/javac.html#BHCJEIBB). An argument file can be space-separated, EOL-separated, or a mix of both. We suggest sticking with one or the other, mixed separator support is best-effort only. |\n| `$BP_BINARY_COMPRESSION_METHOD`         | Compression mechanism used to reduce binary size. Options: `none` (default), `upx` or `gzexe`                                                                                                                                                 |\n| `$BP_NATIVE_IMAGE_BUILT_ARTIFACT`       | Configure the built application artifact explicitly. This is required if building a native image from a JAR file                                                                                                                              |\n\n### Compression Caveats\n\n1. Using `gzexe` if you intend to run your application on a Paketo Tiny image is not currently supported. The `gzexe` utility will compress your executable into what is a shell script, which executes and extracts the actual binary to a temp location. This process requires `/bin/sh` and that is not in the Tiny images. If you try using `gzexe` with a Tiny stack, it'll build OK but fail to run saying a file is missing.\n\n2. Using `upx` will create a compressed executable that fails to run on M1 Macs. There is at the time of writing a bug in the emulation layer used by Docker on M1 Macs that is triggered when you try to run amd64 executable that has been compressed using `upx`. This is a known issue and will hopefully be patched in a future release.\n\n## License\n\nThis buildpack is released under version 2.0 of the [Apache License][a].\n\n[a]: http://www.apache.org/licenses/LICENSE-2.0\n[native-image]: https://www.graalvm.org/reference-manual/native-image/\n[bp/java-native-image]: https://github.com/paketo-buildpacks/java-native-image\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaketo-buildpacks%2Fnative-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaketo-buildpacks%2Fnative-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaketo-buildpacks%2Fnative-image/lists"}