Skip to content
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

Avoid triggering push for Dependabot branches #222

Merged
merged 1 commit into from Jun 16, 2021

Conversation

brcrista
Copy link
Contributor

@brcrista brcrista commented Jun 16, 2021

The CodeQL run is failing for Dependabot (example):

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.

This is disabling the push trigger for Dependabot branches so they will trigger on pull_request instead.

Alternatively, we could just do push:branches:main, but I'm not sure if we still want to trigger on push for other branches.

@brcrista brcrista requested a review from a team as a code owner June 16, 2021 14:05
@brcrista brcrista changed the title void triggering push for Dependabot branches Avoid triggering push for Dependabot branches Jun 16, 2021
@brcrista brcrista merged commit 4642646 into main Jun 16, 2021
@brcrista brcrista deleted the brcrista/dependabot-push branch June 16, 2021 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants