You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bo98
changed the title
[BUG]: Incorrect physical location for composite actions
[BUG]: Incorrect physical location for composite actions in subdirectories
Jan 16, 2025
Ah yeah, I think I know what's happening here -- there's a bit of logic in the SARIF producer to obtain an appropriate "subjective" relative path, but that logic is incorrect in the action (non-workflow case).
(The reason we need this logic at all is because zizmor supports arbitrary paths as inputs, not just repo directories.)
#453should do the trick, although I don't have a great way to test it. If that doesn't work then the next thing will probably be to handle inputs correctly more generally, i.e. actually distinguish repo-like and path-like inputs so that the former can be presented more sanely in the SARIF.
Pre-submission checks
Expected behavior
The physical location contains the full path from the root of the repository.
Actual behavior
The physical location is always
action.yml
regardless of how nested it is.The result of this is that GitHub code scanning will not show where the problem is.
Reproduction steps
subaction/action.yml
zizmor --format sarif
.Logs
I can DM you a real-world example where this happened.
Additional context
No response
The text was updated successfully, but these errors were encountered: