Skip to content
Open

test #14874

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
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def main():
if pr_number:
# Format and post organized comment
logger.info(f"Posting GitHub comment to PR #{pr_number}")
comment_text = github_client.format_multi_spec_comment(analysis_result)
comment_text = analyzer.generate_multi_spec_report(analysis_result)
success = github_client.post_pr_comment(comment_text)

if success:
Expand Down
10 changes: 8 additions & 2 deletions .pipelines/prchecks/CveSpecFilePRCheck/GitHubClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,27 @@ def post_pr_comment(self, body: str) -> Dict[str, Any]:
Response from GitHub API
"""
if not self.token or not self.repo_name or not self.pr_number:
logger.warning("Required GitHub params not available, skipping comment posting")
logger.error(f"Missing required params - token: {'✓' if self.token else '✗'}, repo: {self.repo_name}, pr: {self.pr_number}")
return {}

url = f"{self.api_base_url}/repos/{self.repo_name}/issues/{self.pr_number}/comments"
logger.info(f"Posting comment to: {url}")

payload = {
"body": body
}

try:
response = requests.post(url, headers=self.headers, json=payload)
logger.info(f"Response status: {response.status_code}")
response.raise_for_status()
logger.info("✅ Successfully posted comment")
return response.json()
except requests.exceptions.RequestException as e:
logger.error(f"Failed to post PR comment: {str(e)}")
logger.error(f"❌ Failed to post PR comment: {str(e)}")
if hasattr(e, 'response') and e.response is not None:
logger.error(f"Response status: {e.response.status_code}")
logger.error(f"Response body: {e.response.text}")
return {}

def get_pr_comments(self) -> List[Dict[str, Any]]:
Expand Down
1 change: 1 addition & 0 deletions SPECS/azcopy/azcopy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Patch0: CVE-2025-22868.patch
Patch1: CVE-2025-30204.patch
Patch2: CVE-2025-22870.patch
Patch3: CVE-2024-51744.patch
Patch4: CVE-2025-1111.patch

BuildRequires: golang >= 1.17.9
BuildRequires: git
Expand Down
Loading