{"id":21699700,"url":"https://github.com/cage1016/github-assets-cnb","last_synced_at":"2025-07-26T10:02:57.324Z","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-05-06T15:19:17.224Z","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","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267149544,"owners_count":24043436,"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-07-26T02:00:08.937Z","response_time":62,"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":["assets","buildpack","cnb","github","pack"],"created_at":"2024-11-25T20:10:57.782Z","updated_at":"2025-07-26T10:02:57.254Z","avatar_url":"https://github.com/cage1016.png","language":"Shell","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","funding_links":[],"categories":[],"sub_categories":[],"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"}