Fix query

Forgot to move the `and`.
This commit is contained in:
martincostello
2025-02-14 13:36:09 +00:00
parent 9a7ed7f3f7
commit 5d2409e652

View File

@@ -40,8 +40,8 @@ where
) and
uses.getVersion() = version and
not isTrustedOwner(nwo) and
not if isContainerImage(nwo) then isPinnedContainer(version) else isPinnedCommit(version)
not isImmutableAction(uses, nwo) and
not if isContainerImage(nwo) then isPinnedContainer(version) else isPinnedCommit(version) and
not isImmutableAction(uses, nwo)
select uses.getCalleeNode(),
"Unpinned 3rd party Action '" + name + "' step $@ uses '" + nwo + "' with ref '" + version +
"', not a pinned commit hash", uses, uses.toString()