Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: modify codeql query to use DataFlow instead of DataFlow2 library #3317

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading