{"id":21699700,"url":"https://github.com/cage1016/github-assets-cnb","last_synced_at":"2026-05-18T15:33:46.020Z","repository":{"id":148246398,"uuid":"359752954","full_name":"cage1016/github-assets-cnb","owner":"cage1016","description":"A Cloud Native Buildpack that Download Github Assets","archived":false,"fork":false,"pushed_at":"2021-05-24T02:21:12.000Z","size":5652,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T14:02:51.906Z","etag":null,"topics":["assets","buildpack","cnb","github","pack"],"latest_commit_sha":null,"homepage":"https://kaichu.io/posts/github-assets-cnb/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cage1016.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-04-20T09:09:47.000Z","updated_at":"2022-01-24T07:24:41.000Z","dependencies_parsed_at":"2023-05-25T07:00:15.509Z","dependency_job_id":null,"html_url":"https://github.com/cage1016/github-assets-cnb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cage1016/github-assets-cnb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgithub-assets-cnb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgithub-assets-cnb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgithub-assets-cnb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgithub-assets-cnb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cage1016","download_url":"https://codeload.github.com/cage1016/github-assets-cnb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cage1016%2Fgithub-assets-cnb/sbom","scorecard":{"id":261877,"data":{"date":"2025-08-11","repo":{"name":"github.com/cage1016/github-assets-cnb","commit":"6da57ddeb0a217369de0d695ace54ab05b4b6cca"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.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":"Code-Review","score":0,"reason":"Found 0/9 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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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 2.1.1 not signed: https://api.github.com/repos/cage1016/github-assets-cnb/releases/43440559","Warn: release artifact 2.1.1 does not have provenance: https://api.github.com/repos/cage1016/github-assets-cnb/releases/43440559"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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/release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/cage1016/github-assets-cnb/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/cage1016/github-assets-cnb/release.yml/master?enable=pin","Warn: containerImage not pinned by hash: .devcontainer/Dockerfile:3: pin your Docker image by updating mcr.microsoft.com/vscode/devcontainers/universal:1-focal to mcr.microsoft.com/vscode/devcontainers/universal:1-focal@sha256:352c93f5b5d8d6b98575a27efb7b6b7e2a2c179d400996f9dfafebe06c8e760a","Warn: goCommand not pinned by hash: scripts/.util/tools.sh:132","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 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":"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":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2022-0493 / GHSA-p782-xgp4-8hr8"],"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-17T10:59:28.215Z","repository_id":148246398,"created_at":"2025-08-17T10:59:28.215Z","updated_at":"2025-08-17T10:59:28.215Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33182872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"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":["assets","buildpack","cnb","github","pack"],"created_at":"2024-11-25T20:10:57.782Z","updated_at":"2026-05-18T15:33:46.004Z","avatar_url":"https://github.com/cage1016.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Github Asset Buildpack\n\n![Version](https://img.shields.io/badge/dynamic/json?url=https://cnb-registry-api.herokuapp.com/api/v1/buildpacks/cage1016/github-assets-cnb\u0026label=Version\u0026query=$.latest.version)\n\nA [Cloud Native Buildpack](https://buildpacks.io) that Download Github Assets\n\n\n## Buildpack registry\n\nhttps://registry.buildpacks.io/buildpacks/cage1016/github-assets-cnb\n\n## Features\n\n- Support Download Public/Private Github Assets\n- `x-tar`, `gzip`, `x-zx`, `zip` auto unarchive\n\n## Usage\n\nSupport `metadata.githubassets` fields\n\n- `repo`: Github Repo \n- `asset`: Github Repo asset name\n- `tag`: Release tag name, default set to \"latest\"\n- `token_env`: (optional), Please assign ENV name for private repo\n- `destination`: download asset destination path to, `bin/\u003cyour-asset\u003e` for `application/x-executable` asset\n- `strip_components`: `x-tar`, `gzip`, `x-zx` suuport StripComponents feature.\n\n1. Create `project.toml` if you want to embed github assets\n\n    ```bash\n    cat \u003c\u003cEOF \u003e\u003e project.toml\n    # assign token\n    [[build.env]]\n    name = \"APITEST_TOOLCHAIN_TOKEN\"\n    value = \"\u003cgithub-token\u003e\"\n\n    [[metadata.githubassets]]\n    repo = \"kkdai/youtube\"\n    asset = \"youtubedr_2.7.0_linux_arm64.tar.gz\"\n    destination = \"bin\"\n\n    [[metadata.githubassets]]\n    repo = \"qeek-dev/apitest-toolchain\"\n    token_env = \"APITEST_TOOLCHAIN_TOKEN\"\n    asset = \"apitest-toolchain-linux-amd64\"\n    destination = \"bin/apitest-toolchain\"\n    tag = \"v0.1.0\"\n\n    [[metadata.githubassets]]\n    repo = \"stedolan/jq\"\n    asset = \"jq-linux64\"\n    destination = \"bin/jq\"\n    EOF\n    ```\n\n2. Build container image\n\n    ```\n    pack build myapp --buildpack cage1016/github-assets-cnb@2.1.0\n    ```\n\n3. Check `/layers/cage1016_github-assets-cnb`\n\n    ![](snipaste.png)\n\n### URI\n\n```\nurn:cnb:registry:cage1016/github-assets-cnb\n```\n\n### Supported Stacks\n\n- google\n- io.buildpacks.stacks.bionic\n- io.paketo.stacks.tiny\n- io.buildpacks.samples.stacks.bionic\n- heroku-18\n- heroku-20","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcage1016%2Fgithub-assets-cnb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcage1016%2Fgithub-assets-cnb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcage1016%2Fgithub-assets-cnb/lists"}