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 CodeQL alerts #8

Merged
merged 3 commits into from
Sep 16, 2022
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
155 changes: 155 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,15 @@

try:
import click
import requests
import json
from typing import List, Dict, Any
from typing import Dict
from datetime import datetime
except ImportError:
import sys

print("Missing dependencies. Please reach @jboursier if needed.")
sys.exit(255)

from click.exceptions import ClickException
from requests.exceptions import Timeout

from ghas_cli.utils import repositories, network, vulns
from ghas_cli.utils import repositories, vulns


def main() -> None:
Expand Down
2 changes: 0 additions & 2 deletions src/ghas_cli/utils/export.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python3

from typing import List, Any
import requests
import json


Expand Down
4 changes: 1 addition & 3 deletions src/ghas_cli/utils/network.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python3

from typing import List, Any
import requests
import json
from typing import Any


def check_rate_limit(response: Any) -> bool:
Expand Down
2 changes: 0 additions & 2 deletions src/ghas_cli/utils/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

from typing import List
import requests
import json

from . import network


Expand Down
3 changes: 1 addition & 2 deletions src/ghas_cli/utils/vulns.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python3

from typing import List, Any, Dict
from typing import Dict
import requests
import json

from . import network

Expand Down