refactor(config): validateOnReport (#1182)

This commit is contained in:
Kota Kanbe
2021-02-25 07:41:49 +09:00
committed by GitHub
parent 03579126fd
commit 2cdeef4ffe
3 changed files with 146 additions and 159 deletions

View File

@@ -16,7 +16,6 @@ import (
// DetectGitHubSecurityAlerts access to owner/repo on GitHub and fetch security alerts of the repository via GitHub API v4 GraphQL and then set to the given ScanResult.
// https://help.github.com/articles/about-security-alerts-for-vulnerable-dependencies/
//TODO move to report
func DetectGitHubSecurityAlerts(r *models.ScanResult, owner, repo, token string, ignoreDismissed bool) (nCVEs int, err error) {
src := oauth2.StaticTokenSource(
&oauth2.Token{AccessToken: token},