You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
Support GitHub dependencies review action/api #879
Currently, the dependency submission is called in the Post step, not directly after the execution of Gradle. This is incompatible with the https://github.com/actions/dependency-review-action, which validates the submitted dependencies (from a PR) and will fail your build, eg if you submit vulnerabilities in the PR. The review action needs to be run after Gradle and after the submission of dependencies.
Thanks for trying this out. The action was never tested with the dependency-review-action, since it wasn't compatible with Dependency Submission at the time.
It looks like #882 will address the underlying issue. I'll leave this open until we can confirm that things are working.
@hfhbd A fix for this issue has been added to the main branch. It would be helpful if you could test it out: you can do this by referencing gradle/gradle-build-action@main in your workflow.
Activity
hfhbd commentedon Sep 9, 2023
Hm, don't know if this is a GitHub issue, but the workaround to run the review action in another job didn't work:
https://github.com/hfhbd/ComposeTodo/blob/603a57e66752a8f2f7602a32f2fd657053a77437/.github/workflows/CI.yml
Update: This feature isn't yet implemented according to the issue tracker: actions/dependency-review-action#545, but the docs already mention it: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#best-practices-for-using-the-dependency-review-api-and-the-dependency-submission-api-together
Alternative: gradle-build-action could call the GitHub review REST api too (or via opt-in).
[-]Upload dependency submission after Gradle run[/-][+]Support GitHub dependencies review action/api[/+]bigdaz commentedon Sep 11, 2023
Thanks for trying this out. The action was never tested with the dependency-review-action, since it wasn't compatible with Dependency Submission at the time.
It looks like #882 will address the underlying issue. I'll leave this open until we can confirm that things are working.
felickz commentedon Sep 13, 2023
relevant announcement: https://github.blog/changelog/2023-09-08-dependency-review-support-for-dependency-submission-results/
bigdaz commentedon Sep 26, 2023
@hfhbd A fix for this issue has been added to the
mainbranch. It would be helpful if you could test it out: you can do this by referencinggradle/gradle-build-action@mainin your workflow.hfhbd commentedon Sep 27, 2023
@bigdaz This fix works 🎉 https://github.com/hfhbd/ComposeTodo/actions/runs/6326657590/job/17181840284
bigdaz commentedon Sep 29, 2023
Thanks for checking. I'll release
v2.9.0shortly with this fix.bigdaz commentedon Oct 1, 2023
@hfhbd You should be able to switch back to
v2, sincev2.9.0now includes this fix.