Skip to content
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
1 change: 1 addition & 0 deletions src/ghas_cli/utils/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#!/usr/bin/env python3

import requests

from . import network


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

from typing import List
import requests
import json
import logging
from typing import List

import requests

from . import network

Expand Down
4 changes: 3 additions & 1 deletion src/ghas_cli/utils/issues.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# -*- coding: utf-8 -*-
#!/usr/bin/env python3

import time
from typing import List

import requests

from . import network
import time


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

from typing import Any, Dict
from datetime import datetime
import logging
import time
from datetime import datetime
from typing import Any, Dict

import requests
import logging

# If the rate-limit is reached, sleep X seconds
SLEEP_1_MINUTE = 60
Expand Down
2 changes: 1 addition & 1 deletion src/ghas_cli/utils/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def get_languages(
) -> List:
"""Get the main language for a repository"""

codeql_languages = ["cpp", "csharp", "go", "java", "javascript", "python", "ruby"]
codeql_languages = ["cpp", "csharp", "go", "java", "javascript", "python", "ruby", "swift"]
codeql_aliased_languages = {
"typescript": "javascript",
"kotlin": "java",
Expand Down
2 changes: 2 additions & 0 deletions src/ghas_cli/utils/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#!/usr/bin/env python3

from typing import List

import requests

from . import network


Expand Down
1 change: 1 addition & 0 deletions src/ghas_cli/utils/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#!/usr/bin/env python3

from typing import List

import requests

from . import network
Expand Down
2 changes: 2 additions & 0 deletions src/ghas_cli/utils/teams.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#!/usr/bin/env python3

from typing import List

import requests

from . import network, repositories


Expand Down
1 change: 1 addition & 0 deletions src/ghas_cli/utils/vulns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#!/usr/bin/env python3

from typing import Dict, List

import requests

from . import network
Expand Down