-
Notifications
You must be signed in to change notification settings - Fork 507
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
✨ implement more of the Azure DevOps client #4456
base: main
Are you sure you want to change the base?
✨ implement more of the Azure DevOps client #4456
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4456 +/- ##
==========================================
+ Coverage 66.80% 68.47% +1.67%
==========================================
Files 230 246 +16
Lines 16602 18427 +1825
==========================================
+ Hits 11091 12618 +1527
- Misses 4808 4983 +175
- Partials 703 826 +123 |
How do Branch-Protection and SAST look now? |
SAST works perfectly, but Branch-Protection is still broken until SAST
Branch-Protection
The issue with The approach I'm working on at the moment is listing releases, finding the build that triggered the release, and using the artifacts produced by the build. |
d5da1e2
to
12af663
Compare
Includes: - `GetBranch` - `GetSuccessfulWorkflowRuns` - `ListCheckRunsForRef` - `ListStatuses` - `ListWebhooks` - `SearchCommits` Also, includes comments about methods which can never be implemented: - `GetOrgRepoClient` - Org repository, AKA the `<org>/.github` repository, is a GitHub-specific feature - `ListLicenses` - Azure DevOps doesn't have a license detection feature. Thankfully, the License check falls back to file-based detection. Still need to implement: - `ListReleases` - Needs a little more investigation to line up the Azure DevOps implementation with what Scorecard expects Signed-off-by: Jamie Magee <[email protected]>
Signed-off-by: Jamie Magee <[email protected]>
12af663
to
1d3cd0b
Compare
I'll note this is falling back to the github detection of the
I'm curious if we should just continue on the ListReleases |
Signed-off-by: Jamie Magee <[email protected]>
That's an issue with the check itself than with the Azure DevOps client. There are definitely a couple of checks like that. The SAST check specifically would need to be updated to look for all YAML files in the repository, because Azure Pipelines files can be in any arbitrary location in the repository, and look for the
Yes, that would be one approach. But I don't want to expand the scope of this PR too much more. |
Whoops, I had meant CI-Tests, as that's what you added the |
What kind of change does this PR introduce?
Includes:
GetBranch
GetSuccessfulWorkflowRuns
ListCheckRunsForRef
ListStatuses
ListWebhooks
SearchCommits
Also, includes comments about methods which can never be implemented:
GetOrgRepoClient
<org>/.github
repository, is a GitHub-specific featureListLicenses
Still need to implement:
ListReleases
(Is it a bug fix, feature, docs update, something else?)
What is the current behavior?
Missing implementations for the methods listed above
What is the new behavior (if this is a feature change)?**
Which issue(s) this PR fixes
Next step of #4177
Special notes for your reviewer
Does this PR introduce a user-facing change?
For user-facing changes, please add a concise, human-readable release note to
the
release-note
(In particular, describe what changes users might need to make in their
application as a result of this pull request.)