Skip to content

Commit

Permalink
fix: modify codeql query to use DataFlow instead of DataFlow2 library (
Browse files Browse the repository at this point in the history
…#3317)

modify query to use DataFlow instead of DataFlow2 library
  • Loading branch information
QxBytes authored Jan 7, 2025
1 parent 7da20f5 commit 4773840
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# queries: ./codeql/
queries: ./codeql/
- name: Autobuild
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
Expand Down
2 changes: 1 addition & 1 deletion codeql/acn-addipamconfig.ql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import go
import lib.ACN

private class Source extends DataFlow2::Node {
private class Source extends DataFlow::Node {
Source() {
exists(DataFlow::CallNode c, Method m |
//m.hasQualifiedName("github.com/Azure/azure-container-networking/cni/network", "NetPlugin",
Expand Down
2 changes: 1 addition & 1 deletion codeql/acn-cni-args.ql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import go
import lib.ACN

private class Source extends DataFlow2::Node {
private class Source extends DataFlow::Node {
Source() {
exists(DataFlow::CallNode c, Method m |
(
Expand Down
2 changes: 1 addition & 1 deletion codeql/acn-cns-invoker.ql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import go
import lib.ACN

private class Source extends DataFlow2::Node {
private class Source extends DataFlow::Node {
Source() {
exists(DataFlow::CallNode c, Method m |
(
Expand Down
2 changes: 1 addition & 1 deletion codeql/acn-decode.ql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import go
import lib.ACN

private class Source extends DataFlow2::Node {
private class Source extends DataFlow::Node {
Source() {
exists(DataFlow::CallNode c |
c.getTarget().hasQualifiedName("github.com/Azure/azure-container-networking/common", "Decode") and
Expand Down
2 changes: 1 addition & 1 deletion codeql/lib/ACN.qll
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import go

module ACN {
class CommandSink extends DataFlow2::Node {
class CommandSink extends DataFlow::Node {
CommandSink() {
exists(DataFlow::CallNode c, Method m |
(
Expand Down

0 comments on commit 4773840

Please sign in to comment.