{"id":15651434,"url":"https://github.com/int128/kaniko-action","last_synced_at":"2026-04-17T17:01:40.119Z","repository":{"id":37046745,"uuid":"425378094","full_name":"int128/kaniko-action","owner":"int128","description":"Build container image using Kaniko in GitHub Actions","archived":false,"fork":false,"pushed_at":"2026-04-12T08:36:37.000Z","size":5120,"stargazers_count":41,"open_issues_count":8,"forks_count":11,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T10:21:05.508Z","etag":null,"topics":["docker","github-actions","kaniko"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/int128.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":"2021-11-07T00:20:02.000Z","updated_at":"2026-04-12T08:35:10.000Z","dependencies_parsed_at":"2023-09-24T03:08:50.255Z","dependency_job_id":"a1a3c5f2-b5f5-42bf-adbe-01d21f333945","html_url":"https://github.com/int128/kaniko-action","commit_stats":{"total_commits":840,"total_committers":3,"mean_commits":280.0,"dds":"0.055952380952380976","last_synced_commit":"f7a2300fc95eaee9fb395b1c6b3f4ab9ad395634"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":"int128/typescript-action","purl":"pkg:github/int128/kaniko-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fkaniko-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fkaniko-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fkaniko-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fkaniko-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/int128","download_url":"https://codeload.github.com/int128/kaniko-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/int128%2Fkaniko-action/sbom","scorecard":{"id":415280,"data":{"date":"2025-08-11","repo":{"name":"github.com/int128/kaniko-action","commit":"61d4483386ac4096e2cdfdd643c2289d7eb03bf6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":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":"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":"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/release.yaml:1","Warn: no topLevel permission defined: .github/workflows/ts.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":"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":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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: containerImage not pinned by hash: tests/fixtures/Dockerfile:1: pin your Docker image by updating alpine:3.14.2 to alpine:3.14.2@sha256:e1c082e3d3c45cccac829840a25941e679c25d438cc8412c2fa221cf1a824e6a","Warn: npmCommand not pinned by hash: .github/workflows/release.yaml:23","Warn: npmCommand not pinned by hash: .github/workflows/ts.yaml:31","Warn: npmCommand not pinned by hash: .github/workflows/ts.yaml:76","Info:   6 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   4 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   3 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":"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":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"}},{"name":"Vulnerabilities","score":3,"reason":"7 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-9qxr-qj54-h672","Warn: Project is vulnerable to: GHSA-m4v8-wqvr-p9f7","Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3"],"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-18T23:40:09.768Z","repository_id":37046745,"created_at":"2025-08-18T23:40:09.768Z","updated_at":"2025-08-18T23:40:09.768Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31937732,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-17T12:37:54.787Z","status":"ssl_error","status_checked_at":"2026-04-17T12:37:25.095Z","response_time":62,"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":["docker","github-actions","kaniko"],"created_at":"2024-10-03T12:38:24.790Z","updated_at":"2026-04-17T17:01:40.040Z","avatar_url":"https://github.com/int128.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kaniko-action [![ts](https://github.com/int128/kaniko-action/actions/workflows/ts.yaml/badge.svg)](https://github.com/int128/kaniko-action/actions/workflows/ts.yaml)\n\nThis is an action to build and push a contaier image using [Kaniko](https://github.com/GoogleContainerTools/kaniko) in GitHub Actions.\nIt is just a wrapper of Kaniko executor, that is,\n\n```sh\ndocker run --rm gcr.io/kaniko-project/executor:v1.24.0\n```\n\nThis action is compatible with the Docker's official actions such as [docker/login-action](https://github.com/docker/login-action) or [docker/metadata-action](https://github.com/docker/metadata-action).\n\n## Getting Started\n\nTo build and push a container image to GitHub Container Registry (GHCR),\n\n```yaml\njobs:\n  build:\n    steps:\n      - uses: actions/checkout@v3\n      - uses: docker/metadata-action@v3\n        id: metadata\n        with:\n          images: ghcr.io/${{ github.repository }}\n      - uses: docker/login-action@v1\n        with:\n          registry: ghcr.io\n          username: ${{ github.actor }}\n          password: ${{ secrets.GITHUB_TOKEN }}\n      - uses: int128/kaniko-action@v1\n        with:\n          push: true\n          tags: ${{ steps.metadata.outputs.tags }}\n          labels: ${{ steps.metadata.outputs.labels }}\n          cache: true\n          cache-repository: ghcr.io/${{ github.repository }}/cache\n```\n\nTo build and push a container image to Amazon ECR,\n\n```yaml\njobs:\n  build:\n    steps:\n      - uses: actions/checkout@v3\n      - uses: aws-actions/configure-aws-credentials@v1\n        with:\n          role-to-assume: arn:aws:iam::ACCOUNT:role/ROLE\n      - uses: aws-actions/amazon-ecr-login@v1\n        id: ecr\n      - uses: docker/metadata-action@v4\n        id: metadata\n        with:\n          images: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}\n      - uses: int128/kaniko-action@v1\n        with:\n          push: true\n          tags: ${{ steps.metadata.outputs.tags }}\n          labels: ${{ steps.metadata.outputs.labels }}\n          cache: true\n          cache-repository: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}/cache\n```\n\n## Specification\n\nThis action runs the image of Kaniko executor using `docker run` command.\nIt mounts `~/.docker/config.json` to the Kaniko executor for authentication of remote registry.\n\n### Inputs\n\nThis action supports the below inputs.\nSee also the flags of [Kaniko executor](https://github.com/GoogleContainerTools/kaniko).\n\n| Name                        | Description                                                                                                                                                                                                                               | Corresponding flag  |\n| --------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |\n| `executor`                  | Image of Kaniko executor. Default to `gcr.io/kaniko-project/executor:v1.24.0`                                                                                                                                                             | -                   |\n| `context` \u003csup\u003e\\*1\u003c/sup\u003e    | Path to the build context. Default to the workspace                                                                                                                                                                                       | -                   |\n| `file` \u003csup\u003e\\*1\u003c/sup\u003e       | Path to the Dockerfile. Default to `Dockerfile`. It must be in the context. If set, this action passes the relative path to Kaniko, same as the behavior of [`docker build`](https://docs.docker.com/engine/reference/commandline/build/) | `--dockerfile`      |\n| `build-args` \u003csup\u003e\\*1\u003c/sup\u003e | List of build args (multiline)                                                                                                                                                                                                            | `--build-arg`       |\n| `labels` \u003csup\u003e\\*1\u003c/sup\u003e     | List of metadata for an image (multiline)                                                                                                                                                                                                 | `--label`           |\n| `push` \u003csup\u003e\\*1\u003c/sup\u003e       | Push an image to the registry. Default to false                                                                                                                                                                                           | `--no-push`         |\n| `tags` \u003csup\u003e\\*1\u003c/sup\u003e       | List of tags (multiline)                                                                                                                                                                                                                  | `--destination`     |\n| `target` \u003csup\u003e\\*1\u003c/sup\u003e     | Target stage to build                                                                                                                                                                                                                     | `--target`          |\n| `cache`                     | Enable caching layers                                                                                                                                                                                                                     | `--cache`           |\n| `cache-repository`          | Repository for storing cached layers                                                                                                                                                                                                      | `--cache-repo`      |\n| `cache-ttl`                 | Cache timeout                                                                                                                                                                                                                             | `--cache-ttl`       |\n| `push-retry`                | Number of retries for the push of an image                                                                                                                                                                                                | `--push-retry`      |\n| `registry-mirror`           | Use registry mirror(s) (multiline)                                                                                                                                                                                                        | `--registry-mirror` |\n| `verbosity`                 | Set the logging level                                                                                                                                                                                                                     | `--verbosity`       |\n| `kaniko-args`               | Extra args to Kaniko executor (multiline)                                                                                                                                                                                                 | -                   |\n| `docker-run-args`           | Extra args to docker run (multiline)                                                                                                                                                                                                      | -                   |\n\n\u003csup\u003e\\*1\u003c/sup\u003e These inputs are compatible with [docker/build-push-action](https://github.com/docker/build-push-action).\n\n### Outputs\n\n| Name     | Description                             |\n| -------- | --------------------------------------- |\n| `digest` | Image digest such as `sha256:abcdef...` |\n\n## Examples\n\n### Cache layers\n\nKaniko supports the layer caching with a remote repository such as GHCR or Amazon ECR.\nSee https://github.com/GoogleContainerTools/kaniko#caching for details.\n\nTo enable the layer caching, set a cache repository.\n\n```yaml\n- uses: int128/kaniko-action@v1\n  with:\n    cache: true\n    cache-repository: ghcr.io/${{ github.repository }}/cache\n```\n\n### Build a multi-architecture image\n\nWe can build a multi-architecture image such as `amd64` and `arm64` on self-hosted runners in GitHub Actions.\nSee also https://github.com/int128/docker-manifest-create-action.\n\nHere is an example stack to build an `arm64` image.\n\n- Provision an Amazon EKS cluster\n- Deploy [aws/karpenter](https://github.com/aws/karpenter)\n- Deploy [actions/actions-runner-controller](https://github.com/actions/actions-runner-controller)\n- Run int128/kaniko-action on AWS Graviton 2 (ARM) nodes\n\n### Use an image digest\n\nYou can construct an image URI from outputs.\nFor example,\n\n```\nghcr.io/${{ github.repository }}@${{ steps.build.outputs.digest }}\n```\n\nwill be:\n\n```\nghcr.io/int128/kaniko-action@sha256:0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef\n```\n\nHere is an example workflow to build and deploy an application.\n\n```yaml\njobs:\n  deploy:\n    steps:\n      - uses: actions/checkout@v3\n      - uses: aws-actions/amazon-ecr-login@v1\n        id: ecr\n      - uses: docker/metadata-action@v4\n        id: metadata\n        with:\n          images: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}\n      - uses: int128/kaniko-action@v1\n        id: build\n        with:\n          push: true\n          tags: ${{ steps.metadata.outputs.tags }}\n          labels: ${{ steps.metadata.outputs.labels }}\n          cache: true\n          cache-repository: ${{ steps.ecr.outputs.registry }}/${{ github.repository }}/cache\n      - run: kustomize edit set image myapp=${{ steps.ecr.outputs.registry }}/${{ github.repository }}@${{ steps.build.outputs.digest }}\n      - run: kustomize build | kubectl apply -f -\n```\n\n### Pass extra args to Kaniko executor\n\nYou can pass extra arguments to Kaniko executor in a multiline string.\n\n```yaml\n- uses: int128/kaniko-action@v1\n  with:\n    kaniko-args: |\n      --key=value\n      --key\n```\n\n### Pass extra args to docker run\n\nYou can pass extra arguments to `docker run` command in a multiline string.\n\n```yaml\n- uses: int128/kaniko-action@v1\n  with:\n    docker-run-args: |\n      -v\n      /secrets:/secrets:ro\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fkaniko-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fint128%2Fkaniko-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fint128%2Fkaniko-action/lists"}