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

Snyk error on merging dependabot PRs can be fixed #2526

Closed
swcurran opened this issue Oct 3, 2023 · 0 comments · Fixed by #2658
Closed

Snyk error on merging dependabot PRs can be fixed #2526

swcurran opened this issue Oct 3, 2023 · 0 comments · Fixed by #2658
Assignees

Comments

@swcurran
Copy link
Contributor

swcurran commented Oct 3, 2023

A recent dependabot PR got a Synk error because of a lack of permissions on the GHA for dependabot. Guidance is given in the error code on how to prevent the error. I’m not a GHA pro, so I’m opening this issue in hopes that someone with greater GHA knowledge can review the guidance and correct the issue.

Here is what was printed about the 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.

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 a pull request may close this issue.

2 participants