allspiceio/Generate COGS using Cofactr

Generate cost of goods sold (COGS) using Cofactr.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Sep 1, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: allspiceio/cofactr-cogs@314b79d68bf431b687c34392f3ac1676f02014c1 # v1.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
bom_filePath to the BOM CSV fileyes
quantitiesA comma-separated list of quantities of PCBs to compute the COGS for. E.g. 1,10,100,1000. Defaults to the example. 1,10,100,1000
bom_part_number_columnThe name of the part number column in the BOM file. You must provide this. ""
bom_manufacturer_columnThe name of the manufacturer column in the BOM file. Defaults to ''. If you use a search strategy that uses manufacturer, you must provide this. ""
bom_quantity_columnThe name of the quantity column in the BOM file. You must provide this. ""
search_strategyThe Cofactr search strategy. Can be: "mpn_sku_mfr" or "fuzzy" (uses mpn). Defaults to "mpn_sku_mfr". See Cofactr API documentation for more information on search strategies. mpn_sku_mfr
output_fileThe path to the output file. Defaults to stdout, i.e. printing to the console. ""
api_keyCofactr API Keyyes
client_idCofactr Client IDyes
log_levelSet log level for debugginginfo

no outputs