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

Skip not found code scanning analysis migrations #1324

Merged
merged 2 commits into from
Jan 23, 2025

Conversation

ArinGhazarian
Copy link
Collaborator

Closes https://github.ghe.com/github/octoshift/issues/9761

Description

This PR gracefully skips migrating a code scanning analysis if it is not found (404) and continues migrating the rest.
Before this change, the entire migration would halt if a 404 occurred when trying to GET the SARIF report for an analysis.

  • Did you write/update appropriate tests
  • Release notes updated (if appropriate)
  • Appropriate logging output
  • Issue linked
  • Docs updated (or issue created)
  • New package licenses are added to ThirdPartyNotices.txt (if applicable)

Copy link

github-actions bot commented Jan 23, 2025

Unit Test Results

859 tests   859 ✅  20s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit 9a10bac.

♻️ This comment has been updated with latest results.

Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
Octoshift 87% 76% 1345
ado2gh 84% 78% 631
gei 81% 72% 592
bbs2gh 82% 76% 669
Summary 84% (7182 / 8515) 76% (1656 / 2190) 3237

@ArinGhazarian ArinGhazarian marked this pull request as ready for review January 23, 2025 18:44
@Copilot Copilot bot review requested due to automatic review settings January 23, 2025 18:44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

Copy link

@offbyone offbyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ArinGhazarian ArinGhazarian merged commit 9f82b40 into main Jan 23, 2025
58 of 76 checks passed
@ArinGhazarian ArinGhazarian deleted the skip-not-found-sarif-reports branch January 23, 2025 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants