Introduce our own toolcache implementation for use by the runnner
This commit is contained in:
parent
896b4ff181
commit
8c91ba83e2
46 changed files with 811 additions and 159 deletions
|
|
@ -16,6 +16,7 @@ bindingset[lib]
|
|||
predicate isSafeActionLib(string lib) {
|
||||
lib = "@actions/http-client" or
|
||||
lib = "@actions/exec" or
|
||||
lib = "@actions/io" or
|
||||
lib.matches("@actions/exec/%")
|
||||
}
|
||||
|
||||
|
|
@ -41,7 +42,8 @@ predicate commandSetsActionsEnvVars(string commandName) {
|
|||
class ActionsLibImport extends ImportDeclaration {
|
||||
ActionsLibImport() {
|
||||
getImportedPath().getValue().matches("@actions/%") and
|
||||
not isSafeActionLib(getImportedPath().getValue())
|
||||
not isSafeActionLib(getImportedPath().getValue()) or
|
||||
getImportedPath().getValue() = "./actions-util"
|
||||
}
|
||||
|
||||
string getName() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue