crashappsec / chalk

Chalk allows you to follow code from development, through builds and into production.
https://crashoverride.com/
GNU General Public License v3.0
322 stars 11 forks source link

fix(docker): generic git refspec in context #351

Closed miki725 closed 2 weeks ago

miki725 commented 2 weeks ago

Issue

fixes https://github.com/crashappsec/chalk/issues/350

Description

Docker supports providing full refspec as the context. For example:

docker build https://github.com/user/repo.git#refs/pull/1/merge

Previously chalk only supported tags and branches:

docker build https://github.com/user/repo.git#<branch>
docker build https://github.com/user/repo.git#<tag>

Now chalk also fetches any other explicit refs passed to it.

Testing

➜ make tests args="test_docker.py::test_git_context --slow -x --logs"

tests:--slow