-
Notifications
You must be signed in to change notification settings - Fork 7
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
Skip CodeQL Workflow for Dependabot Branches on push Events #53
Skip CodeQL Workflow for Dependabot Branches on push Events #53
Conversation
This should resolve the following error: Error: Workflows triggered by Dependabot on the "push" event run with read-only access. Uploading Code Scanning results requires write access. To use Code Scanning with Dependabot, please ensure you are using the "pull_request" event for this workflow and avoid triggering on the "push" event for Dependabot branches. See https://docs.github.com/en/code-security/secure-coding/configuring-code-scanning#scanning-on-push for more information on how to configure these events.
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.
🤖
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.
👍 👍
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.
Nice fix @mcdonnnj ! 🔧 💪
Byte me @dependabot! 🤖
🗣 Description
This PR adjusts the CodeQL GitHub Actions workflow to skip
push
events from branches automatically generated by Dependabot. This will resolve #52.💭 Motivation and context
This resolves the problem described in the following error observed In cisagov/con-pca-api#224:
🧪 Testing
Automated tests pass. After implementing this change in cisagov/con-pca-api#224 I observed that the
CodeQL / Analyze (python) (push)
check was skipped as expected.✅ Checklist