From eede0b57b81d52ef3f9b366cd219b3cc6bd826ff Mon Sep 17 00:00:00 2001 From: attiasas Date: Mon, 20 Jan 2025 14:08:32 +0200 Subject: [PATCH] Revert - Upload result to GHAS only if JAS entitled --- scanrepository/scanrepository.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scanrepository/scanrepository.go b/scanrepository/scanrepository.go index 8c339109f..873ec412b 100644 --- a/scanrepository/scanrepository.go +++ b/scanrepository/scanrepository.go @@ -184,10 +184,9 @@ func (cfp *ScanRepositoryCmd) scanAndFixProject(repository *utils.Repository) (i totalFindings += findingCount } - if scanResults.EntitledForJas && repository.GitProvider.String() == vcsutils.GitHub.String() { + if repository.GitProvider.String() == vcsutils.GitHub.String() { // Uploads Sarif results to GitHub in order to view the scan in the code scanning UI - // Currently available on GitHub only and JFrog Advance Security package - // Only if Jas entitlement is available + // Currently available on GitHub only if err = utils.UploadSarifResultsToGithubSecurityTab(scanResults, repository, cfp.scanDetails.BaseBranch(), cfp.scanDetails.Client()); err != nil { log.Warn(err) }