Skip to content

Commit

Permalink
Merge pull request #542 from github/robertbrignull/import-actions-lib
Browse files Browse the repository at this point in the history
Update unguarded-action-lib.ql to catch uses of actions-util.ts
  • Loading branch information
Aditya Sharad authored and GitHub committed Jun 2, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1ec2fd7

Please sign in to comment.