mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 09:14:58 +00:00
Use @actions/io to locate binaries
This commit is contained in:
@@ -10,8 +10,8 @@ import javascript
|
||||
import DataFlow
|
||||
import DataFlow::PathGraph
|
||||
|
||||
class SafeWhichBarrierGuardNode extends DataFlow::BarrierGuardNode, DataFlow::InvokeNode {
|
||||
SafeWhichBarrierGuardNode() { getCalleeName() = "safeWhich" }
|
||||
class WhichBarrierGuardNode extends DataFlow::BarrierGuardNode, DataFlow::InvokeNode {
|
||||
WhichBarrierGuardNode() { getCalleeName() = "which" }
|
||||
|
||||
override predicate blocks(boolean outcome, Expr e) {
|
||||
outcome = true and
|
||||
@@ -36,7 +36,7 @@ class BinaryPlantingConfiguration extends DataFlow::Configuration {
|
||||
}
|
||||
|
||||
override predicate isBarrierGuard(DataFlow::BarrierGuardNode guard) {
|
||||
guard instanceof SafeWhichBarrierGuardNode
|
||||
guard instanceof WhichBarrierGuardNode
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user