Re-order conditions

Makes for a neater diff.
This commit is contained in:
martincostello
2025-02-14 13:35:20 +00:00
parent 99bb0f0b4f
commit 9a7ed7f3f7

View File

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