# How can I configure syft within Grype

**URL:** https://anchorecommunity.discourse.group/t/how-can-i-configure-syft-within-grype/68
**Category:** Grype
**Created:** [August 14, 2024, 11:21am UTC](https://anchorecommunity.discourse.group/t/how-can-i-configure-syft-within-grype/68 "2024-08-14T11:21:03Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![henrysachs](https://yyz2.discourse-cdn.com/free1/user_avatar/anchorecommunity.discourse.group/henrysachs/32/63_2.png) [@henrysachs](https://anchorecommunity.discourse.group/u/henrysachs)
#### Post date: [August 14, 2024, 11:21am UTC](https://anchorecommunity.discourse.group/t/how-can-i-configure-syft-within-grype/68/1 "2024-08-14T11:21:03Z")

</div>

Does Grype Pickup the syft config file or syft environment variables (SYFT\_) up or isnt it possible to configure syft within grype?

---

<div class="post-metadata">

### Author: ![willmurphy](https://yyz2.discourse-cdn.com/free1/user_avatar/anchorecommunity.discourse.group/willmurphy/32/12_2.png) [@willmurphy](https://anchorecommunity.discourse.group/u/willmurphy)
#### Post date: [August 14, 2024, 3:20pm UTC](https://anchorecommunity.discourse.group/t/how-can-i-configure-syft-within-grype/68/2 "2024-08-14T15:20:40Z")

</div>

Hi @henrysachs the simplest way to configure syft within grype is to make an SBOM ahead of time and pass it to grype:

```sh
syft -o json my-image | grype

```

And configure Syft however you’d like.

Another useful pattern is to do this:

```sh
syft -o json my-image > syft.json
grype syft.json

```

This has the added advantage that you don’t need to rebuild the SBOM unless the image changed, so you can generate an SBOM at image build time but scan every day. Depending on image size, that might save you some time.

Does that answer your need? Is there a particular Syft option you were hoping to pass to Grype?
