-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: make release dep check job always run on PRs #8750
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
Conversation
|
Semgrep found 1 No explicit |
When the PR is not against a release branch, it gracefully degrades to a no-op. This will let us make the status required, so that it can actually block releases that fail the job.
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| uses: actions/checkout@v6 | ||
| if: >- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the job still work as you intend if the if keys at the step level are moved to a single if key directly under check-dependencies? https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would not; in that case, no job would run, and the status would be skipped. Github Actions requires a success status; skipped counts as failed. We need a job to run, it just doesn't have to actually do anything 🙄
What changed?
Always run the release dependency check job on all PRs. When the PR is not against a release branch, it gracefully degrades to a no-op.
Why?
This will let us make the status required, so that it can actually block releases that fail the job.
How did you test it?