Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #542 from github/robertbrignull/import-actions-lib
Update unguarded-action-lib.ql to catch uses of actions-util.ts
Aditya Sharad authored and GitHub committed Jun 2, 2021

Unverified

No user is associated with the committer email.
2 parents 4ac9009 + 61b5618 commit 1ec2fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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().matches("/actions-util$")
getImportedPath().getValue().matches("%/actions-util$")
}

string getName() {

0 comments on commit 1ec2fd7

Please sign in to comment.