-
Notifications
You must be signed in to change notification settings - Fork 110
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
Document how to properly use base-ref
#430
Comments
Sorry, to be clear, the two lines I put in seem to work well. It compares master to the tip of the push, so it's checking what will happen when the branch is merged, unless I've misunderstood. I guess I could also use In either case, a bit of doc in the readme about how to use the setting would remove some uncertainty. |
@nedbat thanks, and apologies for the misunderstanding, I'm glad it was working! A rewrite of the README is in the works (it's too long atm), if you want to help out feel free to open a PR with an example for these options. |
@febuiles Hi, I don't think I've got my settings right yet. On a pull request across forks, I got this result:
As above, I am using:
I guess I need something to properly deal with forks? |
This seems to have worked:
|
@nedbat that's very interesting! The API for Dependency Review only supports changes against the default branch (usually |
I wanted to run this action on pushes, so I needed to specify
base-ref
andhead-ref
. I wasn't sure how to do it, so I searched GitHub for uses. A few things there seemed not right, because they set the two refs to be the same, but they are a comparison, so don't they have to be different?https://github.com/fixator10/Fixator10-Cogs/blob/b6fd04ab5490862be71f3e31a7c1aa70282eead2/.github/workflows/dependency-review.yml#LL21-L22C76
https://github.com/marinchuck/test3/blob/6c0eaa622f8e2236a5f4bec5c16d822457225017/.github/workflows/ci-pipeline.yml#L79-L80
Others had more elaborate settings, but often hard-coded the base ref:
https://github.com/Infineon/ek-based-onboarding-optiga-tpm/blob/b00aefa07591394210d39fe306d704b52a23c270/.github/workflows/main.yml#L24-L25
I used this:
What is the right way to do this? An example in the README would help people a lot I think.
The text was updated successfully, but these errors were encountered: