SARIF URI vs. external property file #645
Unanswered
KalleOlaviNiemitalo
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[SARIF-v2.1.0-Errata01] §3.10.3 (URIs that use the sarif scheme) says:
However, the term "SARIF document" is not defined. Does it mean the result of combining the SARIF log file with every referenced external property file, or does it mean only a single SARIF log file or external property file?
In other words:
I was thinking that a SARIF producer could be distributed with an external property file in which the
externalProperties
object would havedriver
,extensions
, andtranslations
properties (§3.15.3) that describe the SARIF producer. However, if SARIF URIs in such an external property file are not resolved against the external property file itself, then it is not possible to reliably reference an element of theextensions
property of the external property file, because the SARIF URI has to be written likesarif:/runs/0/tool/extensions/0
and then its meaning depends on whether there are extensions listed in the SARIF log file too.I suppose the
index
property of thetoolComponentReference
object (§3.54.4) already has the same problem; if an external property file contains atoolComponentReference
object that has anindex
property, then the SARIF consumer will resolve it against the SARIF log file, and it may not be possible to use the same external property file with multiple SARIF log files that list different numbers of extensions. So an external property file is apparently not a good format for a SARIF producer to publish its metadata in a static manner.Beta Was this translation helpful? Give feedback.
All reactions