-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Infra: Run cve checks workflow on pull requests and pushes to main #745
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: "Infra: CVE checks" | ||
on: | ||
pull_request_target: | ||
push: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
schedule: | ||
# * is a special character in YAML so you have to quote this string | ||
|
@@ -71,7 +74,7 @@ jobs: | |
|
||
notify: | ||
needs: build-and-test | ||
if: ${{ always() && needs.build-and-test.result == 'failure' }} | ||
if: ${{ always() && needs.build-and-test.result == 'failure' && github.ref == 'refs/heads/main' }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you please adjust this so it only runs upon failures of scheduled runs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks, I updated it I removed the branch check because scheduled runs only happen from the |
||
uses: ./.github/workflows/infra_discord_hook.yml | ||
with: | ||
message: "Attention! CVE checks run failed! Please fix them CVEs :(" | ||
|
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.
I think we don't need pull_request_target for this particular workflow,
pull_request
should suffice.