mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
Fix query
Forgot to move the `and`.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user