From 308969c8cb205b5855989c783f211027a51663aa Mon Sep 17 00:00:00 2001 From: Assaf Attias <49212512+attiasas@users.noreply.github.com> Date: Tue, 21 Jan 2025 13:49:59 +0200 Subject: [PATCH] Revert - Upload result to GHAS only if JAS entitled (#814) --- 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) }