-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix(CI): Trigger CodeQL on everything except the "push" event for Dependabot branches #66
Conversation
@@ -2,9 +2,8 @@ name: "CodeQL" | |||
|
|||
on: | |||
push: | |||
branches: [ main, v* ] | |||
branches-ignore: dependabot/** |
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.
Admittedly not sure if this would resolve the errors as it appears to be failing on push
events to main
- https://github.com/ScottBrenner/cfn-lint-action/actions/workflows/codeql-analysis.yml?query=event%3Apush
However https://github.com/ScottBrenner/cfn-lint-action/runs/2764966785?check_suite_focus=true#step:3:55 does say avoid triggering on the "push" event for Dependabot branches
@@ -2,9 +2,8 @@ name: "CodeQL" | |||
|
|||
on: | |||
push: | |||
branches: [ main, v* ] | |||
branches-ignore: dependabot/** | |||
pull_request: |
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.
pull_request: |
This could be removed as push
would now trigger for all branches
✅ |
@ScottBrenner sorry for not approving this 🤦 I meant to 😢 |
Summary
The CodeQL workflow fails on the "push" event for Dependabot branches - https://github.com/ScottBrenner/cfn-lint-action/actions/workflows/codeql-analysis.yml with an error message like:
(https://github.com/ScottBrenner/cfn-lint-action/runs/2764966785?check_suite_focus=true#step:3:55)
So, this pull request proposes ignoring the "push" event for Dependabot branches.
Additionally removing specific branches for trigger events, don't we want this to run everywhere?
Other Information
Reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags