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

Add Base and Ref support to inputs #121

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Killklli
Copy link

@Killklli Killklli commented Jun 22, 2024

This adds a rough input option for providing a base and a head entry to the checks.

I have not been able to properly validate this while issue #120 is pending, but the goal here is to be able to provide refs to do comparisons at any location.

Specifically I'm looking to use this with the global git SHA of 4b825dc642cb6eb9a060e54bf8d69288fbee4904 for an empty ref, if using the dependency review action (as we use the API calls on the back end as the same here for the submission API) we can compare against an empty commit to get every response automatically back as a failing result.

That functionality using that SHA with that action works so there is no reason it shouldn't work here. (or other branches)

I was a bit mixed about updating the existing GITHUB_REF value to be one of these so as this is directly associated to the checks themselves I decided to keep it in the format as defined in this PR.

Feel free to make changes, this was a real rough breakdown and while I'm still having active issues with #120 theoretically that shouldn't stop this.

-Edit-
I've now further edited and tested this, this now also will support mapping dependency graph findings to dependabot findings so we can get a valid breakdown of data in comparison

I have also added functionality for doing proper checks for dependency Graph comparisons.

As a note, I think outside warnings I believe Licensing is broken as well, it won't actually cause an error.

Killklli and others added 9 commits June 24, 2024 19:44
* Update dependencygraph.py

* Update checks.py

* Update checks.py

* advisory

* Update dependencyalert.py

* alerts

* Update dependabot.py

* Update checks.py

* checks

* Update checks.py

* Update checks.py

* Update checks.py

* Update checks.py

* Update checks.py

* matching

* Update dependencygraph.py

* Update dependencygraph.py

* Update dependencygraph.py

* alert

* Update checks.py

* Update checks.py

* Update dependencygraph.py

* Update dependencygraph.py

* fix formatting

* depalert

* Update checks.py

* Update checks.py

* alerts

* Update checks.py

* Update checks.py

* Update checks.py
This reverts commit e29ccdf.
@GeekMasher GeekMasher self-assigned this Jul 4, 2024
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