{"id":43938636,"url":"https://github.com/philpep/imago","last_synced_at":"2026-02-07T01:30:28.592Z","repository":{"id":45357778,"uuid":"170156504","full_name":"philpep/imago","owner":"philpep","description":"Ensure kubernetes pods run on latest images builds from the docker registry","archived":false,"fork":false,"pushed_at":"2025-12-01T06:54:45.000Z","size":205,"stargazers_count":98,"open_issues_count":13,"forks_count":13,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-03T18:00:04.754Z","etag":null,"topics":["continuous-delivery","continuous-deployment","docker","docker-registry","kubernetes"],"latest_commit_sha":null,"homepage":null,"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/philpep.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":"2019-02-11T15:53:41.000Z","updated_at":"2025-12-01T06:54:42.000Z","dependencies_parsed_at":"2024-02-01T18:44:04.188Z","dependency_job_id":null,"html_url":"https://github.com/philpep/imago","commit_stats":{"total_commits":78,"total_committers":8,"mean_commits":9.75,"dds":"0.16666666666666663","last_synced_commit":"4e95614a6f4b9503c8348e26314b8558aa4cef7c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/philpep/imago","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpep%2Fimago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpep%2Fimago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpep%2Fimago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpep%2Fimago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philpep","download_url":"https://codeload.github.com/philpep/imago/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philpep%2Fimago/sbom","scorecard":{"id":731721,"data":{"date":"2025-08-11","repo":{"name":"github.com/philpep/imago","commit":"632a80f6ac6e4dd891366044e71ecfcb16e57332"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"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":"Code-Review","score":2,"reason":"Found 5/23 approved changesets -- score normalized to 2","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":"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":"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":"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/publish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/philpep/imago/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/philpep/imago/publish.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/philpep/imago/publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/philpep/imago/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/philpep/imago/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/philpep/imago/test.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage 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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/publish.yml:1","Warn: no topLevel permission defined: .github/workflows/test.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":"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":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 1.7 not signed: https://api.github.com/repos/philpep/imago/releases/139545014","Warn: release artifact 1.6 not signed: https://api.github.com/repos/philpep/imago/releases/82018943","Warn: release artifact 1.4 not signed: https://api.github.com/repos/philpep/imago/releases/55595888","Warn: release artifact 1.7 does not have provenance: https://api.github.com/repos/philpep/imago/releases/139545014","Warn: release artifact 1.6 does not have provenance: https://api.github.com/repos/philpep/imago/releases/82018943","Warn: release artifact 1.4 does not have provenance: https://api.github.com/repos/philpep/imago/releases/55595888"],"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 19 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":0,"reason":"12 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2024-2842 / GHSA-6wvf-f2vw-3425","Warn: Project is vulnerable to: GO-2024-2512 / GHSA-xw73-rw38-6vjc","Warn: Project is vulnerable to: GO-2024-3005 / GHSA-v23v-6jw2-98fq","Warn: Project is vulnerable to: GO-2025-3829 / GHSA-4vq8-7jfc-9cvp","Warn: Project is vulnerable to: GO-2024-2491 / GHSA-xr7r-f8xq-vfvv","Warn: Project is vulnerable to: GO-2024-3110 / GHSA-jfvp-7x6p-h2pv","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-2025-3488 / GHSA-6v2p-p543-phr9","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"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-22T14:37:49.951Z","repository_id":45357778,"created_at":"2025-08-22T14:37:49.951Z","updated_at":"2025-08-22T14:37:49.951Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29183939,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T00:44:15.062Z","status":"ssl_error","status_checked_at":"2026-02-07T00:35:01.758Z","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":["continuous-delivery","continuous-deployment","docker","docker-registry","kubernetes"],"created_at":"2026-02-07T01:30:26.079Z","updated_at":"2026-02-07T01:30:28.582Z","avatar_url":"https://github.com/philpep.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Imago\n\n[![Build Status](https://travis-ci.org/philpep/imago.svg?branch=master)](https://travis-ci.org/philpep/imago)\n[![Go Report Card](https://goreportcard.com/badge/github.com/philpep/imago)](https://goreportcard.com/report/github.com/philpep/imago)\n\nThis project aims to ease continuous delivery of docker images in a\nkubernetes cluster.\n\n[Imago](https://en.wikipedia.org/wiki/Imago) is the last stage of an\ninsect, it also refer to `image` and `go` (golang).\n\n`imago` looks for kubernetes `Deployments`, `DaemonSets`, `StatefulSet` and `CronJobs`\nconfiguration and update them to use the latest image sha256 digest from\nthe docker repository.\n\nThis is useful to handle the following cases:\n\n  - image is rebuilt for security fixes\n  - ensure all pods use exactly the same image\n  - image is rebuilt by CI for continuous delivery\n\n`imago` ensure your pods are running the latest build.\n\n## How it works ?\n\n`imago` looks for `Deployments`, `DaemonSets`, `StatefulSet` and `CronJob` configuration, get the\nlatest sha256 digest from registry and update containers specifications\nto set image to the corresponding `registry/image@sha256:...` notation.\nIt track the original image specification in the `imago-config-spec`\nannotation.\n\nAlternatively, with the `-restart` option, it check running pods sha256 and\njust restart resource that need to use newer images (assuming imagePullPolicy\nis Always). This method is slower than `-update` but it leave the container\nimage in manifests untouched.\n\n## Arguments\n\n    $ imago --help\n\tUsage of imago:\n\t  -A\tCheck deployments and daemonsets on all namespaces (shorthand) (default false)\n\t  -all-namespaces\n\t\t\tCheck deployments and daemonsets on all namespaces (default false)\n\t  -check-pods\n\t\t\tcheck image digests of running pods (default false)\n\t  -field-selector string\n\t\t\tKubernetes field-selector\n\t\t\texample: metadata.name=myapp\n\t  -kubeconfig string\n\t\t\tkube config file (default \"~/.kube/config\")\n\t  -l string\n\t\t\tKubernetes labels selectors\n\t\t\tWarning: applies to Deployment, DaemonSet, StatefulSet and CronJob, not pods !\n\t  -n value\n\t\t\tCheck deployments and daemonsets in given namespaces (default to current namespace)\n\t  -restart\n\t\t\trollout restart deployments and daemonsets to use newer images, implies -check-pods and assume imagePullPolicy is Always (default false)\n\t  -update\n\t\t\tupdate deployments and daemonsets to use newer images (default false)\n\t  -x value\n\t\t\tCheck deployments and daemonsets in all namespaces except given namespaces (implies --all-namespaces)\n\nBy default, `imago` doesn't update your deployments, unless invoked with\n`--update`.\n\nThe `--check-pods` is a less intrusive mode where update is done only if\none of the running pods doesn't run on latest digest image.\n\n## Example output\n\n    $ imago --update\n    2019/02/11 17:55:21 checking default/Deployment/aptly:\n    2019/02/11 17:55:21   aptly ok\n    2019/02/11 17:55:21   nginx ok\n    2019/02/11 17:55:22 checking default/Deployment/kibana:\n    2019/02/11 17:55:22   kibana ok\n    2019/02/11 17:55:22   nginx ok\n    2019/02/11 17:55:22 update default/Deployment/philpep.org\n    2019/02/11 17:55:22 checking DaemonSet/fluentd:\n    2019/02/11 17:55:22   fluentd has to be updated from r.in.philpep.org/fluentd to r.in.philpep.org/fluentd@sha256:6a92af8a9db2ca243e0eba8d401cec11b124822e15b558b35ab45825ed4d1f54\n    2019/02/11 17:55:22 update default/DaemonSet/fluentd\n\n\n## Install and run\n\n### From the command line\n\nAssuming you have a working `~/.kube/config` file, just download and\nbuild the code:\n\n    $ go get github.com/philpep/imago/...\n    $ $(go env GOPATH)/bin/imago --help\n\n### From the docker image\n\nAssuming you have a working `~/.kube/config` file:\n\n    $ docker pull philpep/imago\n    $ docker run --rm -it -u $(id -u) -v ~/.kube/config:/var/lib/imago/.kube/config philpep/imago --help\n\n### From a pre-built binary\n\nCheck [releases page](https://github.com/philpep/imago/releases).\n\n### Inside the cluster\n\nYou can run `imago` inside the cluster, for instance in a `CronJob`\nkubernetes object that runs every day.\n\nSee the\n[ServiceAccount](https://raw.githubusercontent.com/philpep/imago/master/deploy/serviceaccount.yaml)\nand\n[CronJob](https://raw.githubusercontent.com/philpep/imago/master/deploy/cronjob.yaml)\nobjects.\n\n    $ kubectl apply -f deploy/serviceaccount.yaml\n    $ kubectl apply -f deploy/cronjob.yaml\n\n\n## Docker credentials\n\nImage will looks for docker registry credentials in ~/.docker/config.json (e.g.\n/var/lib/imago/.docker/config.json in docker image).\nSo, in case you're using `imagePullSecrets`, you will have to mount the secret here.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilpep%2Fimago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilpep%2Fimago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilpep%2Fimago/lists"}