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

Code scanning currently failing with dependabot. #817

Open
almet opened this issue May 24, 2024 · 0 comments
Open

Code scanning currently failing with dependabot. #817

almet opened this issue May 24, 2024 · 0 comments

Comments

@almet
Copy link
Contributor

almet commented May 24, 2024

on:
push:
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 * * *' # Run every day at 00:00 UTC.

The current security-scan-app and security-scan-container workflows are triggered on push and pull_request events. When dependabot triggers it with a push event, the resulting SARIF files can't be uploaded, due to a limitation.

From the Github Actions logs:

Warning: 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.

We might want to find a way to disable dependabot from triggering on such "push" 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

No branches or pull requests

1 participant