mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
make query more robust
This commit is contained in:
@@ -43,7 +43,7 @@ class ActionsLibImport extends ImportDeclaration {
|
|||||||
ActionsLibImport() {
|
ActionsLibImport() {
|
||||||
getImportedPath().getValue().matches("@actions/%") and
|
getImportedPath().getValue().matches("@actions/%") and
|
||||||
not isSafeActionLib(getImportedPath().getValue()) or
|
not isSafeActionLib(getImportedPath().getValue()) or
|
||||||
getImportedPath().getValue() = "./actions-util"
|
getImportedPath().getValue().matches("/actions-util$")
|
||||||
}
|
}
|
||||||
|
|
||||||
string getName() {
|
string getName() {
|
||||||
|
|||||||
Reference in New Issue
Block a user