mirror of
https://github.com/j93es/oauth-backend.git
synced 2026-06-04 03:51:51 +09:00
코드 수정
This commit is contained in:
parent
9882a0586b
commit
d883441def
2 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class ScopeDetection:
|
||||||
if result != 0:
|
if result != 0:
|
||||||
report_data = [{
|
report_data = [{
|
||||||
'target': target.load(),
|
'target': target.load(),
|
||||||
'status': "WARNING!",
|
'status': "WARNING",
|
||||||
'title': "OAuth scope value issue",
|
'title': "OAuth scope value issue",
|
||||||
'description': f"{method} {url}: {', '.join(result)}",
|
'description': f"{method} {url}: {', '.join(result)}",
|
||||||
'uri': url
|
'uri': url
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ from typing import List, Dict, Any
|
||||||
# file path는 'data/report.csv'로 고정
|
# file path는 'data/report.csv'로 고정
|
||||||
def save_report(report_data: List[Dict[str, Any]], file_path: str = 'data/report.csv') -> None:
|
def save_report(report_data: List[Dict[str, Any]], file_path: str = 'data/report.csv') -> None:
|
||||||
os.makedirs(os.path.dirname(file_path), exist_ok=True)
|
os.makedirs(os.path.dirname(file_path), exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Save the report data to a CSV file.
|
Save the report data to a CSV file.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue