-
Notifications
You must be signed in to change notification settings - Fork 18
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
Dependency Review #135
Comments
There is a note in Dependency review enforcement stating that it should work:
If anyone knows how to set them up, we could add it as an example in the README.md. |
A basic example (in my mind) should be) — would you agree? name: Dependency Review
on:
push:
branches:
- master
pull_request:
permissions:
contents: write # for submitting dependency graph
jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: scalacenter/sbt-dependency-submission@v2
- uses: actions/dependency-review-action@v3
if: github.event_name == 'pull_request' |
Here is my example live: However I haven't gotten it to work yet, as
...as seen here: So while the dependencies are properly uploaded from master and shown here... ...and they seem to work fine to submit from the PR/branch too, but I don't see |
I have a theory what makes it not work in PRs, as mentioned in upstream issue (to be confirmed):
See: |
Gradle actions have/had the same issue, as described here: |
If I understand correctly we should use |
Seems workaround doesn't work: ...so some kind of code change here will be needed here, not sure which exact change. |
I am not sure you can override |
I don't have any idea how to change this repo to get it to work. Ideas? |
I made a PR for seeing if the event is a pull request and then using the correct sha. See if that works for you @MPV. |
Verifies it works with Dependency Review, as per: - scalacenter#135 - https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review - https://github.com/actions/dependency-review-action
Does this action work together with GitHub's Dependency Review?
See:
The text was updated successfully, but these errors were encountered: