Hi,
How do you create your SBOM in Codesys. I have been searching for this topic but couldn't find any useful information. I am referring to making an exported list of all libraries used in the project. I have developed a python script that exports them, but I am open for ideas of beast practice
π
1
Last edit: Automa 2026-08-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I ran into the same gap a while back, and what worked for me was to stop treating the library list as something to remember and start treating it as something the project has to prove each time I make a release.
The Library Manager is the place I start from, since that is where the project actually records what it depends on. For each entry I write down the name, the version that is really resolved in that project, and who published it, if that is shown. The resolved version matters more than the placeholder, in my experience, because a placeholder can pick up a different version on another machine and then the list you exported last week no longer matches what you build today. I keep that list next to the project, in the same revision as the project itself, so a change to either one shows up together.
Your Python script sounds like a reasonable starting point, by the way. I would just check what it produces against the Library Manager after opening the project fresh, and again after any library update, because that is when a stale entry tends to slip through. A quick diff between the old list and the new one usually tells me more than the list on its own.
One thing I learned the hard way is that libraries alone do not cover everything. I also note the device description and any other files the project pulls in, even if I keep them in a short separate section, otherwise the list looks complete and still misses a piece someone needs to rebuild the project. It does not have to be fancy, it just has to be repeatable, and it has to be regenerated rather than copied forward from the last release.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
How do you create your SBOM in Codesys. I have been searching for this topic but couldn't find any useful information. I am referring to making an exported list of all libraries used in the project. I have developed a python script that exports them, but I am open for ideas of beast practice
Last edit: Automa 2026-08-21
more posts ...
I ran into the same gap a while back, and what worked for me was to stop treating the library list as something to remember and start treating it as something the project has to prove each time I make a release.
The Library Manager is the place I start from, since that is where the project actually records what it depends on. For each entry I write down the name, the version that is really resolved in that project, and who published it, if that is shown. The resolved version matters more than the placeholder, in my experience, because a placeholder can pick up a different version on another machine and then the list you exported last week no longer matches what you build today. I keep that list next to the project, in the same revision as the project itself, so a change to either one shows up together.
Your Python script sounds like a reasonable starting point, by the way. I would just check what it produces against the Library Manager after opening the project fresh, and again after any library update, because that is when a stale entry tends to slip through. A quick diff between the old list and the new one usually tells me more than the list on its own.
One thing I learned the hard way is that libraries alone do not cover everything. I also note the device description and any other files the project pulls in, even if I keep them in a short separate section, otherwise the list looks complete and still misses a piece someone needs to rebuild the project. It does not have to be fancy, it just has to be repeatable, and it has to be regenerated rather than copied forward from the last release.