Skip to content

Commit 9a7ed7f

Browse files
Re-order conditions
Makes for a neater diff.
1 parent 99bb0f0 commit 9a7ed7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actions/ql/src/Security/CWE-829/UnpinnedActionsTag.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ where
4040
) and
4141
uses.getVersion() = version and
4242
not isTrustedOwner(nwo) and
43-
not isImmutableAction(uses, nwo) and
4443
not if isContainerImage(nwo) then isPinnedContainer(version) else isPinnedCommit(version)
44+
not isImmutableAction(uses, nwo) and
4545
select uses.getCalleeNode(),
4646
"Unpinned 3rd party Action '" + name + "' step $@ uses '" + nwo + "' with ref '" + version +
4747
"', not a pinned commit hash", uses, uses.toString()

0 commit comments

Comments
 (0)