From 8207018b75d3c166a2f8e59a36eb91bb8c18a6bd Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 23 Apr 2021 10:01:28 +0100 Subject: [PATCH] make query more robust --- queries/unguarded-action-lib.ql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queries/unguarded-action-lib.ql b/queries/unguarded-action-lib.ql index 87183f5d3..faa26d250 100644 --- a/queries/unguarded-action-lib.ql +++ b/queries/unguarded-action-lib.ql @@ -43,7 +43,7 @@ class ActionsLibImport extends ImportDeclaration { ActionsLibImport() { getImportedPath().getValue().matches("@actions/%") and not isSafeActionLib(getImportedPath().getValue()) or - getImportedPath().getValue() = "./actions-util" + getImportedPath().getValue().matches("/actions-util$") } string getName() {