{"action":"opened","issue":{"url":"https://api.github.com/repos/CircleCI-Public/shellcheck-orb/issues/9","repository_url":"https://api.github.com/repos/CircleCI-Public/shellcheck-orb","labels_url":"https://api.github.com/repos/CircleCI-Public/shellcheck-orb/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/CircleCI-Public/shellcheck-orb/issues/9/comments","events_url":"https://api.github.com/repos/CircleCI-Public/shellcheck-orb/issues/9/events","html_url":"https://github.com/CircleCI-Public/shellcheck-orb/issues/9","id":412944807,"node_id":"MDU6SXNzdWU0MTI5NDQ4MDc=","number":9,"title":"Executor is missing git","user":{"login":"cfra","id":1347051,"node_id":"MDQ6VXNlcjEzNDcwNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/1347051?v=4","gravatar_id":"","url":"https://api.github.com/users/cfra","html_url":"https://github.com/cfra","followers_url":"https://api.github.com/users/cfra/followers","following_url":"https://api.github.com/users/cfra/following{/other_user}","gists_url":"https://api.github.com/users/cfra/gists{/gist_id}","starred_url":"https://api.github.com/users/cfra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cfra/subscriptions","organizations_url":"https://api.github.com/users/cfra/orgs","repos_url":"https://api.github.com/users/cfra/repos","events_url":"https://api.github.com/users/cfra/events{/privacy}","received_events_url":"https://api.github.com/users/cfra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-02-21T14:13:43Z","updated_at":"2019-02-21T14:13:43Z","closed_at":null,"author_association":"NONE","body":"I have a CircleCI job like the following:\r\n```\r\nworkflows:\r\n  version: 2\r\n  build_ami:\r\n    jobs:\r\n      - shellcheck/check:\r\n          filters:\r\n            tags:\r\n              only:\r\n                - /.*/\r\n```\r\nThis works fine for regular builds on branches. However, when I do a build on top of a tag, the following happens:\r\n```\r\nEither git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed.\r\nEnumerating objects: 47, done.\r\nCounting objects: 100% (47/47), done.\r\nCompressing objects: 100% (37/37), done.\r\nTotal 5007 (delta 13), reused 23 (delta 7), pack-reused 4960\r\nobject not found\r\n```\r\n\r\nI think this is not really the best possible behavior.\r\n\r\nI am not sure what the best way to address this would be.\r\n\r\nOne thing I could think of would be the creation of a `circleci/shellckeck` docker image instead of the upstream `koalaman` images, and installing git and ssh into this image.\r\n\r\nIf someone could point me into the right direction for solving this, I would be willing to work on it."}}
{"actor":{"display_login":"cfra"}}