# Automation with Sensu-Go -- Pinning Check versions

**URL:** <https://discourse.sensu.io/t/automation-with-sensu-go-pinning-check-versions/2118>\
**Category:** Sensu Go\
**Tags:** sensu-go, assets\
**Created:** [November 4, 2020, 1:18pm UTC](https://discourse.sensu.io/t/automation-with-sensu-go-pinning-check-versions/2118 "2020-11-04T13:18:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvinzi](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/mvinzi/32/468_2.png) [@mvinzi](https://discourse.sensu.io/u/mvinzi)\
**Post date:** [November 4, 2020, 1:18pm UTC](https://discourse.sensu.io/t/automation-with-sensu-go-pinning-check-versions/2118/1 "2020-11-04T13:18:22Z")

</div>

Hello,

I am working on an automation pipeline for our users of Sensu-go. We particularly used Chef to manage Sensu-Core, but we are moving away from chef. In chef you could pin versions of cookbooks for the version of the sensu check.

My question is, using sensuctl and assets, is there a way to pin a check to a particular version of an asset so when we push a change, it does not affect all of our nodes that are subscribed?

We are using Artifactory to host our assets, and gitlab for our asset files.

Thanks,  
Mike

---

<div class="post-metadata">

**Author:** ![calebhailey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/calebhailey/32/46_2.png) [@calebhailey](https://discourse.sensu.io/u/calebhailey)\
**Post date:** [November 4, 2020, 3:43pm UTC](https://discourse.sensu.io/t/automation-with-sensu-go-pinning-check-versions/2118/2 "2020-11-04T15:43:16Z")

</div>

Although not formally supported (there is not yet a concept of Asset “tags” in Sensu Go like there is with Docker images), you can employ an asset versioning scheme that is roughly equivalent to Docker image “tags”.

Example:

```auto
sensu/monitoring-plugins:2.6.0

```

> NOTE: both the asset resource name and the asset reference (i.e. `runtime_assets` values) must match.

By employing this asset naming convention you may register multiple versions of the same asset, and you can effectively “pin” versions as needed.

PS - if you use the `sensuctl asset add` command, it _does_ support this pseudo-tagging syntax to fetch specific asset versions, but it does not include version tags in the resulting Asset resource name by default, so you would need to use the `--rename` flag, like this:

```auto
sensuctl asset add sensu/monitoring-plugins:2.6.0 --rename sensu/monitoring-plugins:2.6.0

```

I hope this helps!
